/
DotVVM.CommandLine.csproj
119 lines (110 loc) · 5.84 KB
/
DotVVM.CommandLine.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<Project Sdk="Microsoft.NET.Sdk">
<!--Related to compilation-->
<PropertyGroup>
<AssemblyTitle>DotVVM.CommandLine</AssemblyTitle>
<AssemblyName>dotnet-dotvvm</AssemblyName>
<VersionPrefix>3.1.0</VersionPrefix>
<TargetFramework>netcoreapp2.1</TargetFramework>
<AssemblyOriginatorKeyFile>dotvvmwizard.snk</AssemblyOriginatorKeyFile>
<SignAssembly>true</SignAssembly>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
</PropertyGroup>
<!--Related to packaging-->
<PropertyGroup>
<PackAsTool>true</PackAsTool>
<!-- <PackageType>DotnetTool</PackageType> -->
<ToolCommandName>dotvvm</ToolCommandName>
<NuspecFile>$(MSBuildProjectName).nuspec</NuspecFile>
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
<PackageId>DotVVM.CommandLine</PackageId>
<PackageVersion>3.1.0</PackageVersion>
<Authors>RIGANTI</Authors>
<Description>Command-line tools for DotVVM.</Description>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageTags>dotvvm;asp.net;mvvm;owin;dotnetcore;dnx;cli</PackageTags>
<PackageIconUrl>https://dotvvm.com/Content/images/icons/icon-blue-64x64.png</PackageIconUrl>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute>
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
<GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute>
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
<GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
<PreserveCompilationContext>true</PreserveCompilationContext>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="NSwag.CodeGeneration.CSharp" Version="13.10.7" />
<PackageReference Include="NSwag.CodeGeneration.Typescript" Version="13.10.7" />
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="NuGet.Frameworks" Version="5.9.0" />
<PackageReference Include="System.CommandLine" Version="2.0.0-beta1.20574.7" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="5.0.0" />
<PackageReference Include="vswhere" Version="2.8.4">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<Content Include="$(VSWhereDir)vswhere.exe" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\DotVVM.Core\DotVVM.Core.csproj" />
<ProjectReference Include="..\DotVVM.Framework\DotVVM.Framework.csproj" />
</ItemGroup>
<Target Name="BuildCompiler" BeforeTargets="BeforeBuild">
<MSBuild Projects="..\DotVVM.Compiler\DotVVM.Compiler.csproj" Targets="Restore;Build;Publish" Properties="TargetFramework=netcoreapp3.1;Configuration=$(Configuration);PublishDir=$(ProjectDir)$(OutputPath)tools\netcoreapp3.1\any" />
<MSBuild Projects="..\DotVVM.Compiler\DotVVM.Compiler.csproj" Targets="Restore;Build;Publish" Properties="TargetFramework=net461;Configuration=$(Configuration);PublishDir=$(ProjectDir)$(OutputPath)tools\net461\any" />
</Target>
<Target Name="AddCompilerToPublish" BeforeTargets="Publish;Pack">
<ItemGroup>
<ToolsFile Include="$(OutputPath)\tools\**" />
</ItemGroup>
<Message Text="$(PublishDir)" Importance="High" />
<Copy SourceFiles="@(ToolsFile)" DestinationFolder="$(PublishDir)\tools\%(RecursiveDir)" />
</Target>
<ItemGroup>
<EmbeddedResource Include="**/*.liquid" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Resources\DotVVMCommandLine.targets" />
</ItemGroup>
<!-- This target is heavily based on the project file of dotnet-ef and a workaround from dotnet/arcade -->
<Target Name="SetPackageProperties" BeforeTargets="GenerateNuspec" DependsOnTargets="BuiltProjectOutputGroup;DebugSymbolsProjectOutputGroup">
<PropertyGroup>
<_CommonMetadataElements>
<id>$(PackageId)</id>
<description>$(PackageDescription)</description>
<version>$(PackageVersion)</version>
<authors>$(Authors)</authors>
<requireLicenseAcceptance>$(PackageRequireLicenseAcceptance)</requireLicenseAcceptance>
$(_TagsElement)
$(_LicenseElement)
$(_IconElement)
$(_IconUrlElement)
$(_ReleaseNotesElement)
</_CommonMetadataElements>
<_CompilerPath>..\DotVVM.Compiler\bin\$(Configuration)\</_CompilerPath>
</PropertyGroup>
<ItemGroup>
<NuspecProperty Include="PackageType=$(PackageType)" />
<NuspecProperty Include="TargetFramework=$(TargetFramework)" />
<NuspecProperty Include="CommonMetadataElements=$(_CommonMetadataElements)" />
<NuspecProperty Include="PackageId=$(PackageId)" />
<NuspecProperty Include="Version=$(PackageVersion)" />
<NuspecProperty Include="ProjectDirectory=$(MSBuildProjectDirectory)" />
<NuspecProperty Include="SettingsFile=$(_ToolsSettingsFilePath)" />
<NuspecProperty Include="Output=$(PublishDir)" />
</ItemGroup>
<PropertyGroup Condition="'$(NuspecFile)' != '' and '$(NuspecProperties)' == ''">
<NuspecProperties>@(NuspecProperty, ';')</NuspecProperties>
</PropertyGroup>
</Target>
</Project>