-
Notifications
You must be signed in to change notification settings - Fork 0
/
Acme.Example.csproj
33 lines (26 loc) · 1.17 KB
/
Acme.Example.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
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<RootNamespace>Acme.Example</RootNamespace>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>
<UsingTask Condition="'$(MSBuildRuntimeType)' != 'Core'" TaskName="GenerateViews" AssemblyFile="tools\win\Maussoft.Mvc.ViewGen.dll" />
<UsingTask Condition="'$(MSBuildRuntimeType)' == 'Core'" TaskName="GenerateViews" AssemblyFile="tools\Maussoft.Mvc.ViewGen.dll" />
<Target Name="BeforeBeforeBuild" BeforeTargets="BeforeBuild">
<GenerateViews />
</Target>
<ItemGroup>
<!-- For local development -->
<!--<ProjectReference Include="..\mvc\Maussoft.Mvc.csproj" />-->
<PackageReference Include="Maussoft.Mvc" Version="0.9.3" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="$(MSBuildProjectDirectory)\Content\**">
<Link>Content\%(RecursiveDir)%(Filename)%(Extension)</Link>
<LogicalName>Content:/$([System.String]::Copy('%(RecursiveDir)').Replace('\', '/'))%(Filename)%(Extension)</LogicalName>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<Content Include="appsettings.json" CopyToOutputDirectory="Always" />
</ItemGroup>
</Project>