forked from dotnet/razor
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMicrosoft.NET.Sdk.Razor.SourceGenerators.Test.csproj
71 lines (61 loc) · 2.82 KB
/
Microsoft.NET.Sdk.Razor.SourceGenerators.Test.csproj
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
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<EnableDefaultItems>false</EnableDefaultItems>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>$(NetVS)</TargetFramework>
<PackageId>testSdkRSG</PackageId>
<PreserveCompilationContext>true</PreserveCompilationContext>
<!-- To generate baselines, run tests with /p:GenerateBaselines=true -->
<DefineConstants Condition="'$(GenerateBaselines)'=='true'">$(DefineConstants);GENERATE_BASELINES</DefineConstants>
<!-- Not yet annotated -->
<Nullable>disable</Nullable>
</PropertyGroup>
<ItemGroup>
<Compile Include="**\*.cs" Exclude="$(GlobalExclude);TestFiles\**\*" />
<!-- Show test files in solution explorer -->
<None Include="TestFiles\**\*" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="FluentAssertions" />
<PackageReference Include="Microsoft.Build.Framework" />
<PackageReference Include="Microsoft.Build.Utilities.Core" />
<PackageReference Include="Moq" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" />
<PackageReference Include="Microsoft.CodeAnalysis.Common" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" />
<PackageReference Include="xunit.extensibility.execution" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\Microsoft.CodeAnalysis.Razor.Compiler\src\Microsoft.CodeAnalysis.Razor.Compiler.csproj" />
<ProjectReference Include="..\..\..\Shared\Microsoft.AspNetCore.Razor.Test.Common\Microsoft.AspNetCore.Razor.Test.Common.csproj" />
</ItemGroup>
<PropertyGroup>
<ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>None</ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.App.Runtime.$(NetCoreSDKRuntimeIdentifier)" ExcludeAssets="all" GeneratePathProperty="true" />
</ItemGroup>
<Choose>
<When Condition="$(NetCoreSDKRuntimeIdentifier) == 'win-x64'">
<ItemGroup>
<Reference Include="$(PkgMicrosoft_AspNetCore_App_Runtime_win-x64)\runtimes\win-x64\lib\net8.0\*.dll" />
</ItemGroup>
</When>
<When Condition="$(NetCoreSDKRuntimeIdentifier) == 'linux-x64'">
<ItemGroup>
<Reference Include="$(PkgMicrosoft_AspNetCore_App_Runtime_linux-x64)\runtimes\linux-x64\lib\net8.0\*.dll" />
</ItemGroup>
</When>
<When Condition="$(NetCoreSDKRuntimeIdentifier) == 'osx-x64'">
<ItemGroup>
<Reference Include="$(PkgMicrosoft_AspNetCore_App_Runtime_osx-x64)\runtimes\osx-x64\lib\net8.0\*.dll" />
</ItemGroup>
</When>
<When Condition="$(NetCoreSDKRuntimeIdentifier) == 'osx-arm64'">
<ItemGroup>
<Reference Include="$(PkgMicrosoft_AspNetCore_App_Runtime_osx-arm64)\runtimes\osx-arm64\lib\net8.0\*.dll" />
</ItemGroup>
</When>
</Choose>
</Project>