|
1 |
| -<Project Sdk="Microsoft.NET.Sdk"> |
| 1 | +<Project Sdk="Microsoft.NET.Sdk.Web"> |
| 2 | + <Import Project="../Common.csproj" /> |
2 | 3 |
|
3 | 4 | <PropertyGroup>
|
4 |
| - <OutputType>Exe</OutputType> |
5 |
| - <TargetFramework>netcoreapp2.2</TargetFramework> |
6 |
| - <ServerGarbageCollection>true</ServerGarbageCollection> |
7 |
| - <Configurations>ReleaseV2;DebugV2;DebugV3;ReleaseV3</Configurations> |
8 |
| - <Platforms>AnyCPU</Platforms> |
| 5 | + <TargetFramework>netcoreapp3.0</TargetFramework> |
| 6 | + <AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel> |
| 7 | + <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> |
9 | 8 | </PropertyGroup>
|
10 | 9 |
|
11 |
| - <PropertyGroup Condition=" $(Configuration.EndsWith('V2')) "> |
12 |
| - <PromMajorVersion>2</PromMajorVersion> |
13 |
| - <DefineConstants>$(DefineConstants);PROMV2</DefineConstants> |
14 |
| - </PropertyGroup> |
15 |
| - |
16 |
| - <PropertyGroup Condition=" $(Configuration.EndsWith('V3')) "> |
17 |
| - <PromMajorVersion>3</PromMajorVersion> |
18 |
| - <DefineConstants>$(DefineConstants);PROMV3</DefineConstants> |
19 |
| - </PropertyGroup> |
| 10 | + <ItemGroup> |
| 11 | + <PackageReference Include="BenchmarkDotNet" Version="0.12.0" /> |
| 12 | + <PackageReference Include="BenchmarkDotNet.Diagnostics.Windows" Version="0.12.0" /> |
| 13 | + <PackageReference Include="Microsoft.AspNetCore.App" /> |
| 14 | + <PackageReference Include="Microsoft.AspNetCore.Razor.Design" Version="2.2.0" PrivateAssets="All" /> |
| 15 | + </ItemGroup> |
20 | 16 |
|
21 |
| - <PropertyGroup Condition=" $(Configuration.StartsWith('Release')) "> |
22 |
| - <Optimize Condition=" '$(Optimize)' == '' ">true</Optimize> |
23 |
| - </PropertyGroup> |
| 17 | + <ItemGroup> |
| 18 | + <ProjectReference Include="..\prometheus-net.DotNetRuntime\prometheus-net.DotNetRuntime.csproj" /> |
| 19 | + </ItemGroup> |
24 | 20 |
|
25 |
| - <PropertyGroup Condition=" $(Configuration.StartsWith('Debug')) "> |
26 |
| - <DebugSymbols Condition=" '$(DebugSymbols)' == '' ">true</DebugSymbols> |
27 |
| - <Optimize Condition=" '$(Optimize)' == '' ">false</Optimize> |
28 |
| - </PropertyGroup> |
| 21 | + <ItemGroup Condition="$(PromMajorVersion) == '3'"> |
| 22 | + <PackageReference Include="prometheus-net.AspNetCore" Version="3.1.2" /> |
| 23 | + </ItemGroup> |
29 | 24 |
|
30 |
| - <ItemGroup> |
31 |
| - <ProjectReference Include="..\prometheus-net.DotNetRuntime\prometheus-net.DotNetRuntime.csproj" /> |
| 25 | + <ItemGroup Condition="$(PromMajorVersion) == '2'"> |
| 26 | + <PackageReference Include="prometheus-net.AspNetCore" Version="2.1.3" /> |
32 | 27 | </ItemGroup>
|
33 | 28 |
|
34 | 29 | <ItemGroup>
|
35 |
| - <PackageReference Include="BenchmarkDotNet" Version="0.11.3" /> |
| 30 | + <Content Update="Properties\launchSettings.json"> |
| 31 | + <ExcludeFromSingleFile>true</ExcludeFromSingleFile> |
| 32 | + <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
| 33 | + <CopyToPublishDirectory>Never</CopyToPublishDirectory> |
| 34 | + </Content> |
36 | 35 | </ItemGroup>
|
37 |
| - |
38 | 36 | </Project>
|
0 commit comments