Skip to content

Commit

Permalink
Create projects and msbuild targets for dotnet core.
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesbetros committed Dec 14, 2016
1 parent ce406f9 commit 411ce3e
Show file tree
Hide file tree
Showing 529 changed files with 75,356 additions and 23,602 deletions.
250 changes: 250 additions & 0 deletions Build.sln

Large diffs are not rendered by default.

54 changes: 54 additions & 0 deletions Build/MSBuild/CosmosNetCore.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- Import Microsoft.Common.Props -->
<Import Project="$(MSBuildExtensionsPath)/$(MSBuildToolsVersion)/Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)/$(MSBuildToolsVersion)/Microsoft.Common.props')" />

<!-- Common repo directories -->
<PropertyGroup>
<ProjectDir>$(MSBuildThisFileDirectory)../</ProjectDir>
<SourceDir>$(ProjectDir)src/</SourceDir>
</PropertyGroup>

<!-- Set Configuration and Platform Defaults -->
<PropertyGroup>
<DefaultNuGetRuntimeIdentifier>win10</DefaultNuGetRuntimeIdentifier>

<Platform Condition="'$(Platform)'==''">AnyCPU</Platform>
<PlatformTarget Condition="'$(OutputType)' == ''">AnyCPU</PlatformTarget>
<Configuration Condition="'$(Configuration)' == ''">Debug</Configuration>
<OptimizationGroup Condition="$(Configuration.EndsWith('Debug'))">Debug</OptimizationGroup>
<OptimizationGroup Condition="$(Configuration.EndsWith('Release'))">Release</OptimizationGroup>
<OptimizationGroup Condition="'$(OptimizationGroup)'==''">Debug</OptimizationGroup>

<OSTarget Condition="'$(OSTarget)' == ''">Windows_NT</OSTarget>
</PropertyGroup>

<PropertyGroup Condition="'$(OptimizationGroup)' == 'Debug'">
<DebugSymbols Condition="'$(DebugSymbols)' == ''">true</DebugSymbols>
<Optimize Condition="'$(Optimize)' == ''">false</Optimize>
<DebugType Condition="'$(DebugType)' == ''">full</DebugType>
<DefineConstants>$(DefineConstants);DEBUG;TRACE</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(OptimizationGroup)' == 'Release'">
<DebugSymbols Condition="'$(DebugSymbols)' == ''">true</DebugSymbols>
<Optimize Condition="'$(Optimize)' == ''">true</Optimize>
<DebugType Condition="'$(DebugType)' == ''">pdbonly</DebugType>
<DefineConstants>$(DefineConstants);TRACE</DefineConstants>
</PropertyGroup>

<PropertyGroup Condition="'$(OS)' != 'Windows_NT'">
<DebugType>portable</DebugType>
</PropertyGroup>

<PropertyGroup>
<BaseNuGetRuntimeIdentifier Condition="'$(BaseNuGetRuntimeIdentifier)' == '' And '$(OSTarget)' == 'Windows_NT'">win10</BaseNuGetRuntimeIdentifier>
<BaseNuGetRuntimeIdentifier Condition="'$(BaseNuGetRuntimeIdentifier)' == ''">$(DefaultNuGetRuntimeIdentifier)</BaseNuGetRuntimeIdentifier>
</PropertyGroup>

<PropertyGroup>
<BinDir Condition="'$(BinDir)'==''">$(ProjectDir)bin/</BinDir>
<ObjDir Condition="'$(ObjDir)'==''">$(ProjectDir)obj/</ObjDir>

<OutputPath>$(BinDir)/$(OptimizationGroup)/$(MSBuildProjectName)</OutputPath>
<IntermediateOutputPath>$(ObjDir)/$(OptimizationGroup)/$(MSBuildProjectName)</IntermediateOutputPath>
</PropertyGroup>
</Project>
35 changes: 35 additions & 0 deletions Build/MSBuild/CosmosNetCore.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<TargetFrameworkIdentifier Condition="'$(TargetFrameworkIdentifier)' == ''">None</TargetFrameworkIdentifier>
<NuGetTargetMoniker Condition="'$(NuGetTargetMoniker)' == ''">.NETStandard,Version=v1.6</NuGetTargetMoniker>
<NuGetTargetMoniker Condition="'$(TargetFrameworkIdentifier)' != 'None'">$(TargetFrameworkIdentifier)</NuGetTargetMoniker>
</PropertyGroup>

<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.Targets" />

<PropertyGroup Condition="'$(TargetFrameworkIdentifier)' == 'None'">
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
<NoStdLib>true</NoStdLib>
<_TargetFrameworkDirectories>$(MSBuildThisFileDirectory)</_TargetFrameworkDirectories>
<_FullFrameworkReferenceAssemblyPaths>$(MSBuildThisFileDirectory)</_FullFrameworkReferenceAssemblyPaths>
<AutoUnifyAssemblyReferences>true</AutoUnifyAssemblyReferences>
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
<PackagesDir>$(HOME)/.nuget/packages/</PackagesDir>
<RestorePackages>false</RestorePackages>
</PropertyGroup>

<PropertyGroup>
<HostName>dotnet</HostName>
</PropertyGroup>

<Target Name="RenameHost" AfterTargets="CopyFilesToOutputDirectory" Condition="'$(OutputType)' == 'Exe' ">
<CallTarget Targets="RenameHostWindows" Condition="Exists('$(Outdir)$(HostName).exe')" />
</Target>

<Target Name="RenameHostWindows">
<Move SourceFiles="$(Outdir)$(AssemblyName).exe" DestinationFiles="$(Outdir)$(AssemblyName).dll" />
<Move SourceFiles="$(Outdir)$(HostName).exe" DestinationFiles="$(Outdir)$(AssemblyName).exe" />
</Target>

<Import Project="$(MSBuildToolsPath)\packageresolve.targets" Condition="Exists('$(MSBuildToolsPath)\packageresolve.targets') " />
</Project>
76 changes: 28 additions & 48 deletions source/Builder.sln → Builder.sln
Original file line number Diff line number Diff line change
@@ -1,48 +1,28 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cosmos.Build.Builder", "Cosmos.Build.Builder\Cosmos.Build.Builder.csproj", "{74A9329A-2B0B-4C0A-976C-E4FB7228D8B2}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cosmos.Build.Installer", "Cosmos.Build.Installer\Cosmos.Build.Installer.csproj", "{27D94586-FE88-4203-BE6A-C99013FD5018}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{74A9329A-2B0B-4C0A-976C-E4FB7228D8B2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{74A9329A-2B0B-4C0A-976C-E4FB7228D8B2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{74A9329A-2B0B-4C0A-976C-E4FB7228D8B2}.Debug|x64.ActiveCfg = Debug|x64
{74A9329A-2B0B-4C0A-976C-E4FB7228D8B2}.Debug|x64.Build.0 = Debug|x64
{74A9329A-2B0B-4C0A-976C-E4FB7228D8B2}.Debug|x86.ActiveCfg = Debug|x86
{74A9329A-2B0B-4C0A-976C-E4FB7228D8B2}.Debug|x86.Build.0 = Debug|x86
{74A9329A-2B0B-4C0A-976C-E4FB7228D8B2}.Release|Any CPU.ActiveCfg = Debug|Any CPU
{74A9329A-2B0B-4C0A-976C-E4FB7228D8B2}.Release|Any CPU.Build.0 = Debug|Any CPU
{74A9329A-2B0B-4C0A-976C-E4FB7228D8B2}.Release|x64.ActiveCfg = Release|x64
{74A9329A-2B0B-4C0A-976C-E4FB7228D8B2}.Release|x64.Build.0 = Release|x64
{74A9329A-2B0B-4C0A-976C-E4FB7228D8B2}.Release|x86.ActiveCfg = Release|x86
{74A9329A-2B0B-4C0A-976C-E4FB7228D8B2}.Release|x86.Build.0 = Release|x86
{27D94586-FE88-4203-BE6A-C99013FD5018}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{27D94586-FE88-4203-BE6A-C99013FD5018}.Debug|Any CPU.Build.0 = Debug|Any CPU
{27D94586-FE88-4203-BE6A-C99013FD5018}.Debug|x64.ActiveCfg = Debug|x64
{27D94586-FE88-4203-BE6A-C99013FD5018}.Debug|x64.Build.0 = Debug|x64
{27D94586-FE88-4203-BE6A-C99013FD5018}.Debug|x86.ActiveCfg = Debug|x86
{27D94586-FE88-4203-BE6A-C99013FD5018}.Debug|x86.Build.0 = Debug|x86
{27D94586-FE88-4203-BE6A-C99013FD5018}.Release|Any CPU.ActiveCfg = Debug|Any CPU
{27D94586-FE88-4203-BE6A-C99013FD5018}.Release|Any CPU.Build.0 = Debug|Any CPU
{27D94586-FE88-4203-BE6A-C99013FD5018}.Release|x64.ActiveCfg = Release|x64
{27D94586-FE88-4203-BE6A-C99013FD5018}.Release|x64.Build.0 = Release|x64
{27D94586-FE88-4203-BE6A-C99013FD5018}.Release|x86.ActiveCfg = Release|x86
{27D94586-FE88-4203-BE6A-C99013FD5018}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cosmos.Build.Builder", "Cosmos.Build.Builder\Cosmos.Build.Builder.csproj", "{74A9329A-2B0B-4C0A-976C-E4FB7228D8B2}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cosmos.Build.Installer", "Cosmos.Build.Installer\Cosmos.Build.Installer.csproj", "{27D94586-FE88-4203-BE6A-C99013FD5018}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{74A9329A-2B0B-4C0A-976C-E4FB7228D8B2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{74A9329A-2B0B-4C0A-976C-E4FB7228D8B2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{74A9329A-2B0B-4C0A-976C-E4FB7228D8B2}.Release|Any CPU.ActiveCfg = Debug|Any CPU
{74A9329A-2B0B-4C0A-976C-E4FB7228D8B2}.Release|Any CPU.Build.0 = Debug|Any CPU
{27D94586-FE88-4203-BE6A-C99013FD5018}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{27D94586-FE88-4203-BE6A-C99013FD5018}.Debug|Any CPU.Build.0 = Debug|Any CPU
{27D94586-FE88-4203-BE6A-C99013FD5018}.Release|Any CPU.ActiveCfg = Debug|Any CPU
{27D94586-FE88-4203-BE6A-C99013FD5018}.Release|Any CPU.Build.0 = Debug|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
Loading

0 comments on commit 411ce3e

Please sign in to comment.