-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
36 lines (32 loc) · 1.56 KB
/
Directory.Build.props
File metadata and controls
36 lines (32 loc) · 1.56 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
34
35
36
<Project>
<PropertyGroup>
<TargetFramework Condition="'$(MSBuildProjectName)' != 'ZlibSharp'">net10.0</TargetFramework>
<TargetFrameworks Condition="'$(MSBuildProjectName)' == 'ZlibSharp'">netstandard2.0;net10.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<DebugType>embedded</DebugType>
<SignAssembly>True</SignAssembly>
<LangVersion>latest</LangVersion>
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)Elskom.snk</AssemblyOriginatorKeyFile>
<PackageOutputPath>$(MSBuildThisFileDirectory)artifacts</PackageOutputPath>
<!--
The second and third entries here are the .NET 11 and the .NET 11 Transport Package sources.
The first entry is bullshit because setting RestoreSources to the values in
RestoreAdditionalProjectSources completely fucking removes nuget.org.
-->
<RestoreAdditionalProjectSources>
https://api.nuget.org/v3/index.json;
https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet11/nuget/v3/index.json;
https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet11-transport/nuget/v3/index.json;
$(PackageOutputPath)
</RestoreAdditionalProjectSources>
<!--
First we must set this to RestoreSources so the existing values are not lost.
Second, why the fuck is nuget.org not a part of this property by default???
-->
<RestoreSources>
$(RestoreSources);
$(RestoreAdditionalProjectSources)
</RestoreSources>
</PropertyGroup>
</Project>