-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNotNot.AppSettings.Example.csproj
More file actions
74 lines (63 loc) · 2.36 KB
/
NotNot.AppSettings.Example.csproj
File metadata and controls
74 lines (63 loc) · 2.36 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
<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" />
</ItemGroup>
<ItemGroup>
<Content Include="AppSettings.Development.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<AdditionalFiles Include="appsettings.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</AdditionalFiles>
</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>
<!--make generated code public. (default is internal)-->
<PropertyGroup>
<!--<NotNot_AppSettings_GenPublic>true</NotNot_AppSettings_GenPublic>-->
</PropertyGroup>
</Project>