diff --git a/Directory.Build.props b/Directory.Build.props new file mode 100644 index 0000000000000000000000000000000000000000..420a82407fb339157095ff7ee9fe5dfe98848e2d --- /dev/null +++ b/Directory.Build.props @@ -0,0 +1,45 @@ +<Project> + <PropertyGroup> + <!-- For a Release Candidate: Uncomment the following line: --> + <!--<DefineConstants>$(DefineConstants),RELEASE_CANDIDATE</DefineConstants>--> + + <!-- For a Release: Uncomment the following line: --> + <!--<DefineConstants>$(DefineConstants),CERTIFICATION_RELEASE</DefineConstants>--> + </PropertyGroup> + + <!-- The following settings define the default values for ALL projects --> + <PropertyGroup> + <VersionPrefix>0.7.7.$([System.DateTime]::UtcNow.Subtract($([System.DateTime]::new(2015,1,1))).Days)</VersionPrefix> + <Authors>Graz University of Technology</Authors> + <Company>European Union</Company> + <Copyright>Copyright © 2012-$([System.DateTime]::UtcNow.Year)</Copyright> + <TargetFramework>net45</TargetFramework> + </PropertyGroup> + + <PropertyGroup> + <VersionSuffix>DEV</VersionSuffix> + </PropertyGroup> + <PropertyGroup Condition="$(DefineConstants.Contains('RELEASE_CANDIDATE'))"> + <VersionSuffix>RC</VersionSuffix> + </PropertyGroup> + <PropertyGroup Condition="$(DefineConstants.Contains('CERTIFICATION_RELEASE'))"> + <VersionSuffix></VersionSuffix> + </PropertyGroup> + + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> + <TreatWarningsAsErrors>false</TreatWarningsAsErrors> + <DefineConstants>DEBUG;TRACE</DefineConstants> + <PlatformTarget>AnyCPU</PlatformTarget> + <WarningLevel>4</WarningLevel> + <DebugType>full</DebugType> + <DebugSymbols>true</DebugSymbols> + <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow> + </PropertyGroup> + + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'"> + <DefineConstants /> + <DebugType>none</DebugType> + <WarningLevel>4</WarningLevel> + <DebugSymbols>false</DebugSymbols> + </PropertyGroup> +</Project> \ No newline at end of file diff --git a/VectoCommon/VectoCommon/VectoCommon.csproj b/VectoCommon/VectoCommon/VectoCommon.csproj index 28523b9df5d6654f44cb3adddff496ff5659ddf3..dcf580646f266f5fb087203910f65b6ba69b0d11 100644 --- a/VectoCommon/VectoCommon/VectoCommon.csproj +++ b/VectoCommon/VectoCommon/VectoCommon.csproj @@ -1,31 +1,8 @@ <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> - <VersionPrefix>0.7.7.$([System.DateTime]::UtcNow.Subtract($([System.DateTime]::new(2015,1,1))).Days)</VersionPrefix> <AssemblyName>VectoCommon</AssemblyName> <Product>VectoCommon</Product> <RootNamespace>TUGraz.VectoCommon</RootNamespace> - <TargetFramework>net45</TargetFramework> - <Authors>Graz University of Technology</Authors> - <Company>European Union</Company> - <Copyright>Copyright © 2012-$([System.DateTime]::UtcNow.Year)</Copyright> - <VersionSuffix Condition="'$(Configuration)'=='Debug'">DEV</VersionSuffix> - <VersionSuffix Condition="'$(Configuration)'!='Debug'" /> - </PropertyGroup> - - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> - <TreatWarningsAsErrors>false</TreatWarningsAsErrors> - <DefineConstants>DEBUG;TRACE</DefineConstants> - <PlatformTarget>AnyCPU</PlatformTarget> - <WarningLevel>4</WarningLevel> - <DebugType>full</DebugType> - <DebugSymbols>true</DebugSymbols> - </PropertyGroup> - - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'"> - <DefineConstants /> - <DebugType>none</DebugType> - <WarningLevel>4</WarningLevel> - <DebugSymbols>false</DebugSymbols> </PropertyGroup> <ItemGroup> @@ -49,5 +26,4 @@ <LastGenOutput>XMLNames.Designer.cs</LastGenOutput> </EmbeddedResource> </ItemGroup> - </Project>