Repository navigation
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
33 lines (29 loc) · 1.64 KB
/
Copy pathDirectory.Build.props
File metadata and controls
33 lines (29 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<Project>
<PropertyGroup>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>disable</Nullable>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<!--
Adding NoWarn to remove build warnings
NU1507: Warning when there are multiple package sources when using CPM with no source mapping
NETSDK1201: Warning that specifying RID won't create self containing app
PRI257: Ignore default language (en) not being one of the included resources (eg en-us, en-uk)
-->
<NoWarn>$(NoWarn);NU1507;NETSDK1201;PRI257</NoWarn>
</PropertyGroup>
<!-- MSBuild Task Host Configuration for CI/CD -->
<!-- Fixes MSB4216 error with UNO SDK's EmbeddedResourceInjectorTask in GitHub Actions -->
<!-- Must be in Directory.Build.props to load BEFORE SDK imports buildTransitive targets -->
<!-- See: https://github.com/dotnet/msbuild/issues/12751 (SDK 9.0.307 bug) -->
<PropertyGroup>
<!-- Force MSBuild to use current runtime/architecture for tasks -->
<GenerateResourceMSBuildArchitecture>CurrentArchitecture</GenerateResourceMSBuildArchitecture>
<GenerateResourceMSBuildRuntime>CurrentRuntime</GenerateResourceMSBuildRuntime>
<!-- Disable out-of-process task host for embedded resources (CI compatibility) -->
<DisableOutOfProcTaskHost>true</DisableOutOfProcTaskHost>
</PropertyGroup>
<!-- Beta build compile constant: pass -p:IsBetaBuild=true from CI to define BETA_BUILD -->
<PropertyGroup Condition="'$(IsBetaBuild)' == 'true'">
<DefineConstants>$(DefineConstants);BETA_BUILD</DefineConstants>
</PropertyGroup>
</Project>