Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[src] Improve the generated project files a little bit. #17812

Merged
merged 1 commit into from
Mar 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1351,6 +1351,7 @@ define DotNetProjectFiles
$(DOTNET_BUILD_DIR)/projects/$(1)/$(1).csproj: dotnet.tmpl.csproj Makefile $$(wildcard $(CURDIR)/*.sources)
@mkdir -p $$(dir $$@)
@sed \
-e 's*%DOTNET_TFM%*$(DOTNET_TFM)*' \
-e 's*%PLATFORM%*$(1)*' \
-e 's*<!--%FILES%-->*$$(foreach file,$$($(2)_DOTNET_SOURCES),<Compile Include="../../../../$$(file)" Link="sources/$$(file)" />)*' \
-e 's*<!--%APIS%-->*$$(foreach file,$$($(2)_DOTNET_APIS),<None Include="../../../../$$(file)" Link="apis/$$(file)" />)*' \
Expand Down
4 changes: 2 additions & 2 deletions src/dotnet.tmpl.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
<!-- This is a project file to load in the IDE to get code completion, etc. It's not used for building the product assemblies, that happens in the makefile -->
<PropertyGroup>
<_TargetPlatform>%PLATFORM%</_TargetPlatform>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>%DOTNET_TFM%</TargetFramework>
<TargetFrameworkIdentifier>.NETCoreApp</TargetFrameworkIdentifier> <!-- this line shouldn't be necessary, but VSMac on one of my machines won't load the project otherwise -->
<OutputType>Library</OutputType>
<AssemblyName>Xamarin.iOS</AssemblyName>
<AssemblyName>Microsoft.%PLATFORM%</AssemblyName>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\..\..\..\product.snk</AssemblyOriginatorKeyFile>
<LangVersion>latest</LangVersion>
Expand Down