aboutsummaryrefslogtreecommitdiff
blob: c6ed1aaeddaa2d0a6ebd4a0c25a5612aa3a25fd8 (plain)
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
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
    <AssemblyName>$(AssemblyName)</AssemblyName>
    <OutputType>$(OutputType)</OutputType>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <OutputPath>bin\Debug</OutputPath>
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <DefineConstants>DEBUG</DefineConstants>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <OutputPath>bin\Release</OutputPath>
    <DebugSymbols>true</DebugSymbols>
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="System" />
    <Reference Include="System.Core" />
    <!-- Reference -->
  </ItemGroup>
  <ItemGroup>
    <Compile Include="**/*.cs" Exclude="AssemblyVersion.cs" />
  </ItemGroup>
  <ItemGroup>
    <!-- ProjectReference -->
  </ItemGroup>
  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
  <Import Project="$(MSBuildExtensionsPath)\MSBuild.Community.Tasks.Targets" />
  <Target Name="BeforeBuild">
    <PropertyGroup Condition=" '$(VersionNumber)' == '' ">
      <VersionNumber>1.0.0.0</VersionNumber>
    </PropertyGroup>
    <AssemblyInfo CodeLanguage="C#"
      OutputFile="$(MSBuildThisFileDirectory)/AssemblyVersion.cs" 
      AssemblyVersion="$(VersionNumber)" 
      AssemblyFileVersion="$(VersionNumber)"
    />
    <CreateItem Include="$(MSBuildThisFileDirectory)/AssemblyVersion.cs">
      <Output TaskParameter="Include" ItemName="Compile"/>
    </CreateItem>
  </Target>
</Project>