Skip to content

Instantly share code, notes, and snippets.

@hschne
Last active August 29, 2015 14:05
Show Gist options
  • Save hschne/4d989e02eaf815d64912 to your computer and use it in GitHub Desktop.
Save hschne/4d989e02eaf815d64912 to your computer and use it in GitHub Desktop.
Working csproj file with dynamic assembly info from subversion
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<MSBuildCommunityTasksPath>$(SolutionDir)\.build</MSBuildCommunityTasksPath>
</PropertyGroup>
<Import Project="$(MSBuildCommunityTasksPath)\MSBuild.Community.Tasks.Targets" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{D9637AA1-7B71-47BB-BE59-818CB175F5E3}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Tricentis.TCAddIns.TCSnapshotAddin</RootNamespace>
<AssemblyName>TCSnapshotAddin</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileUpgradeFlags>
</FileUpgradeFlags>
<OldToolsVersion>2.0</OldToolsVersion>
<UpgradeBackupLocation />
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>TRACE;DEBUG</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>..\..\TCCore\bin\Release\AddIns\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Base">
<HintPath>C:\Program Files (x86)\TRICENTIS\TOSCA Testsuite\ToscaCommander\Base.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="BusinessObjects">
<HintPath>C:\Program Files (x86)\TRICENTIS\TOSCA Testsuite\ToscaCommander\BusinessObjects.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Icons">
<HintPath>C:\Program Files (x86)\TRICENTIS\TOSCA Testsuite\ToscaCommander\Icons.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="ModelViewConnector">
<HintPath>C:\Program Files (x86)\TRICENTIS\TOSCA Testsuite\ToscaCommander\ModelViewConnector.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Persistency">
<HintPath>C:\Program Files (x86)\TRICENTIS\TOSCA Testsuite\ToscaCommander\Persistency.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RequirementsManagement">
<HintPath>C:\Program Files (x86)\TRICENTIS\TOSCA Testsuite\ToscaCommander\Addins\RequirementsManagement.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.configuration" />
<Reference Include="System.Data" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
<Reference Include="XDefinitions">
<HintPath>C:\Program Files (x86)\TRICENTIS\TOSCA Testsuite\ToscaCommander\Addins\XDefinitions.dll</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="BusinessObjects\TCSnapshotFolder.cs" />
<Compile Include="BusinessObjects\TCSnapshotContainer.cs" />
<Compile Include="GUI\AddinIcon.cs" />
<Compile Include="GUI\TCSnapshotConnector.cs" />
<Compile Include="GUI\TCSnapshotContainerConnector.cs" />
<Compile Include="Localization\TCAddInLocalization.cs" />
<Compile Include="Localization\TCX.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>TCX.resx</DependentUpon>
</Compile>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
<DependentUpon>Settings.settings</DependentUpon>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Settings.cs" />
<Compile Include="Tasks\CreateSnapshotsTask.cs" />
<Compile Include="Tasks\JumpToTasks.cs" />
<Compile Include="Tasks\SearchAllTasks.cs" />
<Compile Include="Tasks\CreateRequirementSetSnapshotTask.cs" />
<Compile Include="Tasks\RequirementSetTaskInterceptor.cs" />
<Compile Include="Tasks\CreateSnapshotTopFolderTask.cs" />
<Compile Include="Tasks\TCProjectTaskInterceptor.cs" />
<Compile Include="BusinessObjects\TCSnapshot.cs" />
<Compile Include="TCSnapshotAddin.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Localization\TCX.de.resx">
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="Localization\TCX.en.resx">
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="Localization\TCX.resx">
<SubType>Designer</SubType>
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>TCX.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="GUI\BaseIcons\TCSnapshot.png" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="GUI\BaseIcons\TCSnapshotContainer.png" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
<Target Name="BeforeBuild">
<SvnVersion LocalPath="$(SolutionDir)" ToolPath="$(ProgramFiles)\subversion\bin">
<Output TaskParameter="Revision" PropertyName="Revision" />
</SvnVersion>
<FileUpdate Files="Properties\AssemblyInfo.cs"
Regex="(\d+)\.(\d+)\.(\d+)\.(\d+)"
ReplacementText="$1.$2.$3.$(Revision)" />
</Target>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment