2015-01-05 03:34:47 +00:00
<?xml version="1.0" encoding="utf-8"?>
2015-01-04 05:36:04 +00:00
<Project ToolsVersion= "12.0" DefaultTargets= "Build" xmlns= "http://schemas.microsoft.com/developer/msbuild/2003" >
<Import Project= "$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition= "Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup >
<Configuration Condition= " '$(Configuration)' == '' " > Debug</Configuration>
<Platform Condition= " '$(Platform)' == '' " > AnyCPU</Platform>
<ProjectGuid > {DDF5040E-9C6C-4686-800B-D4563C289F01}</ProjectGuid>
<OutputType > Exe</OutputType>
<AppDesignerFolder > Properties</AppDesignerFolder>
<RootNamespace > CitizenMP.Server.Installer</RootNamespace>
2015-01-10 04:33:38 +00:00
<AssemblyName > citizenmp_server_updater</AssemblyName>
2015-01-04 05:36:04 +00:00
<TargetFrameworkVersion > v4.0</TargetFrameworkVersion>
<FileAlignment > 512</FileAlignment>
2015-01-12 00:25:34 +00:00
<NuGetPackageImportStamp > fe2835f3</NuGetPackageImportStamp>
2015-01-04 05:36:04 +00:00
<TargetFrameworkProfile />
2015-01-04 13:17:21 +00:00
<SolutionDir Condition= "$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'" > ..\..\</SolutionDir>
<RestorePackages > true</RestorePackages>
2015-01-04 05:36:04 +00:00
</PropertyGroup>
<PropertyGroup Condition= " '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' " >
<PlatformTarget > AnyCPU</PlatformTarget>
<DebugSymbols > true</DebugSymbols>
<DebugType > full</DebugType>
<Optimize > false</Optimize>
2015-01-10 13:42:04 +00:00
<DefineConstants > TRACE;DEBUG;NO_COMMANDLINE</DefineConstants>
2015-01-04 05:36:04 +00:00
<ErrorReport > prompt</ErrorReport>
<WarningLevel > 4</WarningLevel>
2015-01-04 12:44:48 +00:00
<Prefer32Bit > false</Prefer32Bit>
2015-01-10 04:33:38 +00:00
<UseVSHostingProcess > false</UseVSHostingProcess>
2015-01-04 05:36:04 +00:00
</PropertyGroup>
<PropertyGroup Condition= " '$(Configuration)|$(Platform)' == 'Release|AnyCPU' " >
<PlatformTarget > AnyCPU</PlatformTarget>
<DebugType > pdbonly</DebugType>
<Optimize > true</Optimize>
2015-01-10 13:42:04 +00:00
<DefineConstants > TRACE;NO_COMMANDLINE</DefineConstants>
2015-01-04 05:36:04 +00:00
<ErrorReport > prompt</ErrorReport>
<WarningLevel > 4</WarningLevel>
2015-01-04 12:44:48 +00:00
<Prefer32Bit > false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup >
2015-01-10 04:33:38 +00:00
<OutDir > $(SolutionDir)\bin\$(Configuration)\$(Platform)\$(AssemblyName)\</OutDir>
<IntDir > $(SolutionDir)\obj\$(AssemblyName)\$(Configuration)\$(Platform)\</IntDir>
<IntermediateOutputPath > $(SolutionDir)\obj\$(AssemblyName)\$(Configuration)\$(Platform)\</IntermediateOutputPath>
<BaseIntermediateOutputPath > $(SolutionDir)\obj\$(AssemblyName)\$(Configuration)\$(Platform)\</BaseIntermediateOutputPath>
<OutputPath > $(SolutionDir)\bin\$(Configuration)\$(Platform)\$(AssemblyName)\</OutputPath>
2015-01-04 05:36:04 +00:00
</PropertyGroup>
<PropertyGroup >
<StartupObject > CitizenMP.Server.Installer.Program</StartupObject>
</PropertyGroup>
<ItemGroup >
<Reference Include= "CommandLine, Version=1.9.71.2, Culture=neutral, PublicKeyToken=de6f01bd326f8c32, processorArchitecture=MSIL" >
<SpecificVersion > False</SpecificVersion>
2015-01-04 12:44:48 +00:00
<HintPath > $(SolutionDir)\packages\CommandLineParser.1.9.71\lib\net40\CommandLine.dll</HintPath>
2015-01-04 05:36:04 +00:00
</Reference>
<Reference Include= "Microsoft.Build" />
<Reference Include= "Microsoft.Build.Conversion.v4.0" />
<Reference Include= "Microsoft.Build.Engine" />
<Reference Include= "Microsoft.Build.Framework" />
<Reference Include= "Microsoft.Build.Tasks.v4.0" />
<Reference Include= "Microsoft.Build.Utilities.v4.0" />
<Reference Include= "Mono.Posix" >
2015-01-04 12:44:48 +00:00
<HintPath > $(SolutionDir)\packages\Mono.Posix.4.0.0.0\lib\net40\Mono.Posix.dll</HintPath>
2015-01-04 05:36:04 +00:00
</Reference>
<Reference Include= "System" />
<Reference Include= "System.Core" />
<Reference Include= "System.Xml.Linq" />
<Reference Include= "System.Data.DataSetExtensions" />
<Reference Include= "Microsoft.CSharp" />
<Reference Include= "System.Data" />
<Reference Include= "System.Xml" />
</ItemGroup>
<ItemGroup >
<Compile Include= "CommandLineOptions.cs" />
<Compile Include= "Program.cs" />
<Compile Include= "Properties\AssemblyInfo.cs" />
<Compile Include= "RepositoryExtensions.cs" />
</ItemGroup>
<ItemGroup >
<None Include= "App.config" />
2015-01-04 18:43:01 +00:00
<None Include= "packages.config" >
<SubType > Designer</SubType>
</None>
2015-01-04 05:36:04 +00:00
</ItemGroup>
2015-01-04 16:36:13 +00:00
<Import Project= "$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Target Name= "EnsureNuGetPackageBuildImports" BeforeTargets= "PrepareForBuild" >
<PropertyGroup >
<ErrorText > This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
2015-01-12 00:25:34 +00:00
<Error Condition= "!Exists('$(SolutionDir).nuget\NuGet.targets')" Text= "$([System.String]::Format('$(ErrorText)', '$(SolutionDir).nuget\NuGet.targets'))" />
<Error Condition= "!Exists('$(SolutionDir)packages\Fody.1.26.4\build\Fody.targets')" Text= "$([System.String]::Format('$(ErrorText)', '$(SolutionDir)packages\Fody.1.26.4\build\Fody.targets'))" />
2015-01-04 16:36:13 +00:00
</Target>
2015-01-04 13:05:46 +00:00
<ItemGroup >
2015-01-04 19:53:29 +00:00
<EmbeddedResource Include= "costura32\git2-91fa31f.dll" />
<EmbeddedResource Include= "costura64\git2-91fa31f.dll" />
<EmbeddedResource Include= "costura32\*.so" />
<EmbeddedResource Include= "costura64\*.so" />
2015-01-05 03:34:47 +00:00
<Content Include= "FodyWeavers.xml" >
<SubType > Designer</SubType>
</Content>
2015-01-04 13:05:46 +00:00
</ItemGroup>
2015-01-04 18:43:01 +00:00
<ItemGroup >
2015-01-10 14:18:49 +00:00
<ProjectReference Include= "$(SolutionDir)deps\libgit2sharp\LibGit2Sharp\LibGit2Sharp.csproj" >
2015-01-04 18:43:01 +00:00
<Project > {ee6ed99f-cb12-4683-b055-d28fc7357a34}</Project>
<Name > LibGit2Sharp</Name>
</ProjectReference>
</ItemGroup>
2015-01-04 13:05:46 +00:00
<UsingTask TaskName= "CosturaCleanup" AssemblyFile= "$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll" TaskFactory= "CodeTaskFactory" >
<ParameterGroup >
<Config Output= "false" Required= "true" ParameterType= "Microsoft.Build.Framework.ITaskItem" />
<Files Output= "false" Required= "true" ParameterType= "Microsoft.Build.Framework.ITaskItem[]" />
</ParameterGroup>
<Task Evaluate= "true" >
<Reference xmlns= "http://schemas.microsoft.com/developer/msbuild/2003" Include= "System.Xml" />
<Reference xmlns= "http://schemas.microsoft.com/developer/msbuild/2003" Include= "System.Xml.Linq" />
<Using xmlns= "http://schemas.microsoft.com/developer/msbuild/2003" Namespace= "System" />
<Using xmlns= "http://schemas.microsoft.com/developer/msbuild/2003" Namespace= "System.IO" />
<Using xmlns= "http://schemas.microsoft.com/developer/msbuild/2003" Namespace= "System.Xml.Linq" />
<Code xmlns= "http://schemas.microsoft.com/developer/msbuild/2003" Type= "Fragment" Language= "cs" > < ![CDATA[
var config = XElement.Load(Config.ItemSpec).Elements("Costura").FirstOrDefault();
if (config == null) return true;
var excludedAssemblies = new List<string > ();
var attribute = config.Attribute("ExcludeAssemblies");
if (attribute != null)
foreach (var item in attribute.Value.Split('|').Select(x => x.Trim()).Where(x => x != string.Empty))
excludedAssemblies.Add(item);
var element = config.Element("ExcludeAssemblies");
if (element != null)
foreach (var item in element.Value.Split(new[] { "\r\n", "\n" }, StringSplitOptions.RemoveEmptyEntries).Select(x => x.Trim()).Where(x => x != string.Empty))
excludedAssemblies.Add(item);
var filesToCleanup = Files.Select(f => f.ItemSpec).Where(f => !excludedAssemblies.Contains(Path.GetFileNameWithoutExtension(f), StringComparer.InvariantCultureIgnoreCase));
foreach (var item in filesToCleanup)
File.Delete(item);
]]></Code>
</Task>
</UsingTask>
<Target Name= "CleanReferenceCopyLocalPaths" AfterTargets= "AfterBuild;NonWinFodyTarget" >
<CosturaCleanup Config= "FodyWeavers.xml" Files= "@(ReferenceCopyLocalPaths->'$(OutDir)%(DestinationSubDirectory)%(Filename)%(Extension)')" />
2015-01-04 05:36:04 +00:00
</Target>
2015-01-04 16:12:36 +00:00
<Import Project= "$(SolutionDir)\.nuget\NuGet.targets" Condition= "Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
2015-01-04 18:43:01 +00:00
<PropertyGroup Condition= " '$(OS)' == 'Windows_NT'" >
<PreBuildEvent > pushd "$(SolutionDir)deps\libgit2sharp\libgit2"
set /p LIBGIT2_HASH=< ..\LibGit2Sharp\libgit2_hash.txt
set LIBGIT2_HASH=%25LIBGIT2_HASH:~0,7%25
mkdir Build
pushd Build
2015-01-10 04:10:22 +00:00
if not exist "$(SolutionDir)src\updater\costura64\git2-%25LIBGIT2_HASH%25.dll" (
rmdir /q /s x64
mkdir x64
pushd x64
cmake ../.. "-DCMAKE_INSTALL_PREFIX=%25cd%25" "-DBIN_INSTALL_DIR=$(SolutionDir)src\updater\costura64" -DCMAKE_BUILD_TYPE=Release -DBUILD_CLAR:BOOL=OFF -Ax64 -DUSE_SSH=OFF -DENABLE_TRACE=ON -DLIBGIT2_FILENAME=git2-%25LIBGIT2_HASH%25 -DCMAKE_OSX_ARCHITECTURES="x86_64"
cmake --build . --config Release --target install
popd
)
if not exist "$(SolutionDir)src\updater\costura32\git2-%25LIBGIT2_HASH%25.dll" (
rmdir /q /s x86
mkdir x86
pushd x86
cmake ../.. "-DCMAKE_INSTALL_PREFIX=%25cd%25" "-DBIN_INSTALL_DIR=$(SolutionDir)src\updater\costura32" -DCMAKE_BUILD_TYPE=Release -DBUILD_CLAR:BOOL=OFF -AWin32 -DUSE_SSH=OFF -DENABLE_TRACE=ON -DLIBGIT2_FILENAME=git2-%25LIBGIT2_HASH%25 -DCMAKE_OSX_ARCHITECTURES="i386"
cmake --build . --config Release --target install
popd
)
popd</PreBuildEvent>
2015-01-04 18:43:01 +00:00
</PropertyGroup>
<PropertyGroup Condition= " '$(OS)' != 'Windows_NT'" >
<PreBuildEvent > cd "$(SolutionDir)deps\libgit2sharp\libgit2"
2015-01-10 04:10:22 +00:00
LIBGIT2_HASH=$(cat ../LibGit2Sharp/libgit2_hash.txt)
2015-01-04 18:43:01 +00:00
LIBGIT2_HASH=${LIBGIT2_HASH:0:7}
2015-01-10 04:10:22 +00:00
mkdir -p Build
2015-01-04 18:43:01 +00:00
cd Build
2015-01-10 04:10:22 +00:00
if [ ! -e "$(SolutionDir)src/updater/costura64"/git*.so ]; then
rm -rf x64
mkdir -p x64
cd x64
cmake ../.. "-DCMAKE_INSTALL_PREFIX=%25cd%25" "-DBIN_INSTALL_DIR=$(SolutionDir)src\updater\costura64" -DCMAKE_BUILD_TYPE=Release -DBUILD_CLAR:BOOL=OFF -Ax64 -DUSE_SSH=OFF -DENABLE_TRACE=ON -DLIBGIT2_FILENAME=git2-%25LIBGIT2_HASH%25 -DCMAKE_OSX_ARCHITECTURES="x86_64"
cmake --build . --target install
cd ..
fi
if [ ! -e "$(SolutionDir)src/updater/costura32"/git*.so ]; then
rm -rf x86
mkdir -p x86
cd x86
cmake ../.. "-DCMAKE_INSTALL_PREFIX=%25cd%25" "-DBIN_INSTALL_DIR=$(SolutionDir)src\updater\costura32" -DCMAKE_BUILD_TYPE=Release -DBUILD_CLAR:BOOL=OFF -AWin32 -DUSE_SSH=OFF -DENABLE_TRACE=ON -DLIBGIT2_FILENAME=git2-%25LIBGIT2_HASH%25 -DCMAKE_OSX_ARCHITECTURES="i386"
cmake --build . --target install
cd ..
fi
2015-01-04 18:43:01 +00:00
</PreBuildEvent>
</PropertyGroup>
2015-01-10 14:18:49 +00:00
<Import Project= "$(SolutionDir)packages\Fody.1.26.1\build\Fody.targets" Condition= "Exists('$(SolutionDir)packages\Fody.1.26.1\build\Fody.targets')" />
2015-01-12 00:25:34 +00:00
<Import Project= "$(SolutionDir)packages\Fody.1.26.4\build\Fody.targets" Condition= "Exists('..\..\packages\Fody.1.26.4\build\Fody.targets')" />
2015-01-04 16:12:36 +00:00
<!-- 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>
-->
2015-01-04 05:36:04 +00:00
</Project>