Skip to content

Commit cea1a2e

Browse files
author
Chris Maunder
committed
Corrected missing targeting
1 parent 2d125d2 commit cea1a2e

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

src/demos/clients/Net/JsonAPI/JsonAPI.csproj

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,28 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<PropertyGroup>
4-
<OutputType>Exe</OutputType>
5-
</PropertyGroup>
3+
<Import Project="../../../SDK/NET/Common.targets" />
4+
5+
<PropertyGroup>
6+
<TargetFramework>net9.0</TargetFramework>
7+
<OutputType>Exe</OutputType>
8+
<Platform>AnyCPU</Platform>
9+
</PropertyGroup>
10+
11+
<!-- Common Release properties -->
12+
<PropertyGroup Condition="'$(Configuration)'=='Release'">
13+
<DebugType>none</DebugType>
14+
<DebugSymbols>false</DebugSymbols>
15+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
16+
<WarningsAsErrors />
17+
</PropertyGroup>
18+
19+
<!-- Common Debug properties -->
20+
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
21+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
22+
<WarningsAsErrors />
23+
<NoWarn>1701;1702;</NoWarn>
24+
<DebugType>portable</DebugType>
25+
</PropertyGroup>
626

727
<ItemGroup>
828
<None Remove="images\study-group.jpg" />
@@ -15,7 +35,7 @@
1535
</ItemGroup>
1636

1737
<ItemGroup>
18-
<ProjectReference Include="..\..\..\..\SDK\NET\NET.csproj" />
38+
<ProjectReference Include="../../../../SDK/NET/NET.csproj" />
1939
</ItemGroup>
2040

2141
</Project>

0 commit comments

Comments
 (0)