forked from dotnet/sdk
/
Microsoft.NET.Sdk.Razor.Tool.csproj
39 lines (34 loc) · 1.85 KB
/
Microsoft.NET.Sdk.Razor.Tool.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
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>Razor is a markup syntax for adding server-side logic to web pages. This assembly contains infrastructure supporting Razor MSBuild integration.</Description>
<TargetFramework>$(SdkTargetFramework)</TargetFramework>
<OutputType>Exe</OutputType>
<AssemblyName>rzc</AssemblyName>
<StrongNameKeyId>MicrosoftAspNetCore</StrongNameKeyId>
<!-- This is not a package, it is part of Razor SDK. -->
<IsPackable>false</IsPackable>
<IsShipping>false</IsShipping>
<!-- Don't produce rzc.exe -->
<UseAppHost>false</UseAppHost>
<RuntimeIdentifier />
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Razor.Language" Version="$(MicrosoftAspNetCoreRazorLanguageVersion)" />
<PackageReference Include="Microsoft.CodeAnalysis.Razor" Version="$(MicrosoftCodeAnalysisRazorVersion)" />
<PackageReference Include="Microsoft.Css.Parser" Version="$(MicrosoftCssParserVersion)" />
<PackageReference Include="Newtonsoft.Json" Version="$(NewtonsoftJsonPackageVersion)" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.Extensions"
Version="$(MicrosoftAspNetCoreMvcRazorExtensionsPackageVersion)"
ReferenceOutputAssembly="false"
SkipGetTargetFrameworkProperties="true"/>
</ItemGroup>
<!-- This makes it so that the runtimeconfig.json is included as part of the build output of the project that references this project. -->
<Target Name="PreserveRuntimeConfig" BeforeTargets="GetCopyToOutputDirectoryItems">
<ItemGroup>
<AllItemsFullPathWithTargetPath Include="$(ProjectRuntimeConfigFilePath)">
<TargetPath>$(ProjectRuntimeConfigFileName)</TargetPath>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</AllItemsFullPathWithTargetPath>
</ItemGroup>
</Target>
</Project>