|
4 | 4 | <PropertyGroup Condition="$(MSBuildProjectName.Contains('Test')) And !$(MSBuildProjectName.Contains('Ios'))">
|
5 | 5 | <TargetFramework>netcoreapp3.1</TargetFramework>
|
6 | 6 | </PropertyGroup>
|
7 |
| - <ItemGroup Condition="$(MSBuildProjectName.Contains('Test'))"> |
| 7 | + <ItemGroup Condition="$(MSBuildProjectName.Contains('Test')) And !$(MSBuildProjectName.Contains('Visualizer'))"> |
8 | 8 | <PackageReference Include="xunit" Version="2.4.1" />
|
9 | 9 | <PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
|
10 | 10 | <PackageReference Include="Xunit.SkippableFact" Version="1.4.13" />
|
11 | 11 | <PackageReference Include="coverlet.collector" Version="1.3.0" />
|
12 | 12 | <PackageReference Include="Microsoft.NET.Test.Sdk" Version="*" />
|
13 | 13 | <PackageReference Include="GitHubActionsTestLogger" Version="1.1.0" />
|
14 | 14 | </ItemGroup>
|
15 |
| - <PropertyGroup Condition="$(MSBuildProjectName.StartsWith('CSharpMath'))"> <!--Don't apply to Typography projects--> |
| 15 | + <!--Don't apply to Typography projects--> |
| 16 | + <PropertyGroup Condition="$(MSBuildProjectName.StartsWith('CSharpMath'))"> |
| 17 | + <!--CSharpMath-specific properties for centralized control of values--> |
| 18 | + <AvaloniaVersion>0.10.0-preview5</AvaloniaVersion> |
| 19 | + |
| 20 | + <!--C# code properties--> |
16 | 21 | <LangVersion>preview</LangVersion>
|
17 | 22 | <Nullable>enable</Nullable>
|
18 | 23 | <NoWarn>
|
19 | 24 | CA1062,<!--Obsolete with C# 8 nullability annotations-->
|
20 | 25 | CA1303,<!--Who localizes exception messages, anyway?-->
|
21 | 26 | </NoWarn>
|
22 | 27 | <WarningsAsErrors Condition="$(MSBuildProjectExtension) == '.csproj'">nullable</WarningsAsErrors>
|
23 |
| - <AvaloniaVersion>0.10.0-preview5</AvaloniaVersion> |
24 | 28 |
|
25 | 29 | <!--NuGet properties: Ordered according to https://docs.microsoft.com/en-us/nuget/reference/msbuild-targets#pack-target-->
|
26 | 30 | <PackageId>$(MSBuildProjectName)</PackageId>
|
|
42 | 46 | <RepositoryType>git</RepositoryType>
|
43 | 47 | <RepositoryBranch>master</RepositoryBranch>
|
44 | 48 | <!--RepositoryCommit property is set in the SetDefaultPackageVersion target below-->
|
45 |
| - |
| 49 | + |
46 | 50 | <!--SourceLink properties: Ordered according to https://github.com/dotnet/sourcelink#using-source-link-in-net-projects-->
|
47 | 51 | <PublishRepositoryUrl>true</PublishRepositoryUrl>
|
48 | 52 | <EmbedUntrackedSources>true</EmbedUntrackedSources>
|
49 | 53 | <IncludeSymbols>true</IncludeSymbols>
|
50 | 54 | <SymbolPackageFormat>snupkg</SymbolPackageFormat>
|
51 |
| - |
| 55 | + |
52 | 56 | <!--Info on NuGet packaging properties: https://github.com/NuGet/Home/wiki/Adding-nuget-pack-as-a-msbuild-target-->
|
53 | 57 | <GeneratePackageOnBuild>false</GeneratePackageOnBuild>
|
54 | 58 | <GeneratePackageOnBuild Condition="
|
|
57 | 61 | And !$(MSBuildProjectName.Contains('Example'))
|
58 | 62 | And !$(MSBuildProjectName.Contains('Playground'))
|
59 | 63 | And $(Configuration.Equals('Release'))">true</GeneratePackageOnBuild>
|
60 |
| - |
| 64 | + <PackageOutputPath>$(MSBuildThisFileDirectory).nupkgs</PackageOutputPath> |
| 65 | + |
61 | 66 | <!--https://github.com/clairernovotny/DeterministicBuilds
|
62 | 67 | Deterministic builds are important as they enable verification that the resulting binary was built from the specified source and provides traceability.
|
63 | 68 | It should not be enabled during local dev or the debugger won't be able to find the local source files.
|
64 | 69 | Also, this requires SourceLink to be enabled or else error: https://github.com/dotnet/sourcelink/issues/91#issuecomment-400787926-->
|
65 | 70 | <!--But this only works well with dotnet msbuild, not the Windows full MSBuild-->
|
66 | 71 | <ContinuousIntegrationBuild Condition="'$(MSBuildRuntimeType)'=='Core'">$(GeneratePackageOnBuild)</ContinuousIntegrationBuild>
|
67 |
| - |
68 |
| - <PackageOutputPath>$(MSBuildThisFileDirectory).nupkgs</PackageOutputPath> |
| 72 | + |
| 73 | + <!--Assembly properties--> |
69 | 74 | <NeutralLanguage>en</NeutralLanguage>
|
70 |
| - <RootNamespace>$(MSBuildProjectName)</RootNamespace> <!--Prefix namespace for embedded resources--> |
| 75 | + <!--Prefix namespace for embedded resources--> |
| 76 | + <RootNamespace>$(MSBuildProjectName)</RootNamespace> |
71 | 77 | <AssemblyName>$(MSBuildProjectName)</AssemblyName>
|
72 | 78 | </PropertyGroup>
|
73 | 79 | <!--SourceLink does not work well with WPF projects so we don't add it unconditionally-->
|
|
0 commit comments