-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
79 lines (79 loc) · 4.04 KB
/
Directory.Build.props
File metadata and controls
79 lines (79 loc) · 4.04 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<Project>
<!-- Common project properties for all projects in the solution -->
<!-- Version information -->
<PropertyGroup>
<Version>1.0.0</Version>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<FileVersion>1.0.0.0</FileVersion>
<InformationalVersion>1.0.0</InformationalVersion>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
</PropertyGroup>
<!-- Company and product information -->
<PropertyGroup>
<Company>Need2Code AB</Company>
<Product>GoGotland</Product>
<Copyright>Copyright © $([System.DateTime]::Now.Year) Need2Code AB</Copyright>
<Trademark>GoGotland™</Trademark>
<Description>XAF Blazor application for GoGotland</Description>
</PropertyGroup>
<!-- Build configuration -->
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<Deterministic>false</Deterministic>
<CheckEolTargetFramework>false</CheckEolTargetFramework>
<!-- Enable building Windows-targeting projects on non-Windows platforms -->
<EnableWindowsTargeting>true</EnableWindowsTargeting>
<!-- Set to true to automatically copy all content files and assemblies to output directory after build -->
<CopyAllFilesToOutputDirectory>true</CopyAllFilesToOutputDirectory>
</PropertyGroup>
<!-- Package information for applications -->
<PropertyGroup Condition="'$(OutputType)' == 'Exe'">
<PackageId>$(AssemblyName)</PackageId>
<PackageVersion>$(Version)</PackageVersion>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/Need2Code-AB/GoGotland</PackageProjectUrl>
<RepositoryUrl>https://github.com/Need2Code-AB/GoGotland</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageTags>XAF;Blazor;DevExpress;EFCore</PackageTags>
</PropertyGroup>
<!-- Copy all files to output directory when CopyAllFilesToOutputDirectory is true -->
<Target Name="CopyAllFilesToOutput"
AfterTargets="Build"
Condition="'$(CopyAllFilesToOutputDirectory)' == 'true'">
<ItemGroup>
<!-- Copy all content files -->
<_ContentFiles Include="$(ProjectDir)**\*.*"
Exclude="$(ProjectDir)**\bin\**;$(ProjectDir)**\obj\**;$(ProjectDir)**\.git\**;$(ProjectDir)**\node_modules\**"
Condition="'%(Extension)' != '.cs' And '%(Extension)' != '.csproj' And '%(Extension)' != '.sln' And '%(Extension)' != '.user' And '%(Extension)' != '.tmp'" />
<!-- Copy all assemblies and dependencies including satellite assemblies -->
<_AllAssemblies Include="$(OutDir)**\*.dll;$(OutDir)**\*.exe;$(OutDir)**\*.pdb;$(OutDir)**\*.xml;$(SolutionDir)src\Modules\**\$(OutDir)*.resources.dll"
Condition="'%(Extension)' == '.dll' Or '%(Extension)' == '.exe' Or '%(Extension)' == '.pdb' Or '%(Extension)' == '.xml' Or '%(Extension)' == '.resources.dll'" />
</ItemGroup>
<Copy SourceFiles="@(_ContentFiles)"
DestinationFolder="$(OutDir)%(_ContentFiles.RecursiveDir)"
SkipUnchangedFiles="true"
Condition="'@(_ContentFiles)' != ''" />
<Copy SourceFiles="@(_AllAssemblies)"
DestinationFolder="$(OutDir)"
SkipUnchangedFiles="true"
Condition="'@(_AllAssemblies)' != ''" />
</Target>
<!-- Development settings -->
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<DebugType>none</DebugType>
<DebugSymbols>false</DebugSymbols>
<Optimize>true</Optimize>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(MSBuildThisFileDirectory)src\GlobalUsings.cs" />
</ItemGroup>
</Project>