-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNotNot.AppSettings.Example.csproj
More file actions
89 lines (77 loc) · 3.12 KB
/
Copy pathNotNot.AppSettings.Example.csproj
File metadata and controls
89 lines (77 loc) · 3.12 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
</PropertyGroup>
<!--shared common .csproj settings-->
<Import Project="..\..\CommonSettings.targets" />
<PropertyGroup>
<!--standard dotnet stuff-->
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<LangVersion>preview</LangVersion>
<EnablePreviewFeatures>true</EnablePreviewFeatures>
<RootNamespace>ExampleApp</RootNamespace>
</PropertyGroup>
<ItemGroup>
<None Remove="AppSettings.Development.json" />
<None Remove="appsettings.json" />
<None Remove="appsettings.Sample.json" />
</ItemGroup>
<ItemGroup>
<Content Include="AppSettings.Development.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="appsettings.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="appsettings.Sample.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Hosting" Version="10.0.0" />
</ItemGroup>
<Choose>
<!--only use project references when in Debug, otherwise use the nuget package references-->
<When Condition="'$(Configuration)'=='Debug'">
<ItemGroup>
<ProjectReference OutputItemType="Analyzer" ReferenceOutputAssembly="false" Include="..\..\nuget\NotNot.AppSettings\NotNot.AppSettings.csproj" />
<ProjectReference Include="..\..\nuget\NotNot.Bcl\NotNot.Bcl.csproj" />
</ItemGroup>
</When>
<When Condition="'$(Configuration)'=='DebugNuget'">
<ItemGroup>
<PackageReference Include="NotNot.AppSettings" Version="0.0.0-0.localDebug" />
</ItemGroup>
<PropertyGroup>
<!--force nuget to restore without using cached packages, to ensure above wildcard always gets latest non-preview version in nuget-->
<RestoreNoCache>true</RestoreNoCache>
</PropertyGroup>
</When>
<Otherwise>
<ItemGroup>
<PackageReference Include="NotNot.AppSettings" Version="*" />
</ItemGroup>
<PropertyGroup>
<!--force nuget to restore without using cached packages, to ensure above wildcard always gets latest non-preview version in nuget-->
<RestoreNoCache>true</RestoreNoCache>
</PropertyGroup>
</Otherwise>
</Choose>
<!--
R1.3 workaround, root cause deferred (analyzer-ProjectReference auto-import is a NuGet-package
convention; OutputItemType="Analyzer" ProjectReference does not auto-import the referenced
project's build/*.props|*.targets — must be explicit-imported per consumer).
See NotNot.AppSettings/ReadMe.md "Consuming as ProjectReference Analyzer" for the pattern.
-->
<Import Project="..\..\nuget\NotNot.AppSettings\NotNot.AppSettings.props"
Condition="'$(Configuration)'=='Debug'" />
<Import Project="..\..\nuget\NotNot.AppSettings\NotNot.AppSettings.targets"
Condition="'$(Configuration)'=='Debug'" />
<!--make generated code public. (default is internal)-->
<PropertyGroup>
<!--<NotNot_AppSettings_GenPublic>true</NotNot_AppSettings_GenPublic>-->
</PropertyGroup>
</Project>