-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTemplateHandler.csproj
43 lines (40 loc) · 1.85 KB
/
TemplateHandler.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
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<PackageType>Template</PackageType>
<PackageVersion>2.3.3</PackageVersion>
<PackageId>Template.ProcessCube.Project</PackageId>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
<Title>Project Template</Title>
<Authors>Jeremy Hill, David Wehmeyer</Authors>
<Description>Template für eine einfache .NET-Anwendung, welche den ProcessCube integriert.</Description>
<PackageTags>dotnet-new;templates;</PackageTags>
<TargetFramework>net6.0</TargetFramework>
<IncludeContentInPack>true</IncludeContentInPack>
<IncludeBuildOutput>false</IncludeBuildOutput>
<ContentTargetFolders>content</ContentTargetFolders>
<NoWarn>$(NoWarn);NU5128</NoWarn>
<NoDefaultExcludes>true</NoDefaultExcludes>
<LocalNuget>artifacts</LocalNuget>
<RepositoryUrl>https://github.com/5minds/Template.ProcessCube.Project</RepositoryUrl>
</PropertyGroup>
<ItemGroup>
<None Include="LICENSE.txt" Pack="true" PackagePath="LICENSE.txt"/>
<Content
Include="Template.ProcessCube.Project\**\*"
Exclude="Template.ProcessCube.Project\**\bin\**;Template.ProcessCube.Project\**\obj\**;Template.ProcessCube.Project\**\node_modules\**"/>
<Compile Remove="**\*" />
</ItemGroup>
<Target Name="InstallTemplate">
<CallTarget Targets="Template" />
<CallTarget Targets="UninstallTemplate" />
<Exec Command="dotnet new --install $(LocalNuget)/*.nupkg" ConsoleToMSBuild="true" />
</Target>
<Target Name="Template">
<Message Importance="High" Text="Create Template in $(LocalNuget):" />
<RemoveDir Directories="$(LocalNuget)" />
<Exec Command="dotnet pack -o $(LocalNuget)" ConsoleToMSBuild="true" />
</Target>
<Target Name="UninstallTemplate">
<Exec Command="dotnet new --uninstall Template.ProcessCube.Project" ConsoleToMSBuild="true" />
</Target>
</Project>