Skip to content

Commit

Permalink
Added a build target for .NET 4.0 Client Profile.
Browse files Browse the repository at this point in the history
  • Loading branch information
PhyxionNL committed Jun 24, 2015
1 parent eb46690 commit 3aa8ed0
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 7 deletions.
3 changes: 2 additions & 1 deletion build.cmd
@@ -1 +1,2 @@
@%WINDIR%\Microsoft.Net\Framework\v4.0.30319\msbuild build.proj /m /clp:Verbosity=minimal
@%WINDIR%\Microsoft.Net\Framework\v4.0.30319\msbuild build.proj /m /clp:Verbosity=minimal /p:TargetPortable="true"
@%WINDIR%\Microsoft.Net\Framework\v4.0.30319\msbuild build.proj /m /clp:Verbosity=minimal /p:TargetPortable="false"
5 changes: 4 additions & 1 deletion build.config
Expand Up @@ -3,9 +3,12 @@
<PropertyGroup>
<XUnitPath>tools\xunit</XUnitPath>
</PropertyGroup>
<PropertyGroup>
<PropertyGroup Condition=" '$(TargetPortable)' == 'true' ">
<ReleaseFolder>Release</ReleaseFolder>
</PropertyGroup>
<PropertyGroup Condition=" '$(TargetPortable)' == 'false' ">
<ReleaseFolder>Release4</ReleaseFolder>
</PropertyGroup>
<ItemGroup>
<BuildOutput Include="Src\Humanizer\bin\Release\Humanizer.dll" />
<BuildOutput Include="Src\Humanizer\bin\Release\Humanizer.XML" />
Expand Down
23 changes: 18 additions & 5 deletions src/Humanizer/Humanizer.csproj
Expand Up @@ -10,20 +10,26 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Humanizer</RootNamespace>
<AssemblyName>Humanizer</AssemblyName>
<TargetPortable Condition=" '$(TargetPortable)' == '' ">true</TargetPortable>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkProfile>Profile328</TargetFrameworkProfile>
<FileAlignment>512</FileAlignment>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
<RestorePackages>true</RestorePackages>
<ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<MinimumVisualStudioVersion>10.0</MinimumVisualStudioVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(TargetPortable)' == 'true' ">
<TargetFrameworkProfile>Profile328</TargetFrameworkProfile>
<ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
</PropertyGroup>
<PropertyGroup Condition=" '$(TargetPortable)' == 'false' ">
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DefineConstants>TRACE;DEBUG</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DocumentationFile>bin\Debug\Humanizer.xml</DocumentationFile>
Expand Down Expand Up @@ -237,8 +243,15 @@
<ItemGroup>
<Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
<ItemGroup Condition=" '$(TargetPortable)' == 'false' ">
<Reference Include="System" />
</ItemGroup>
<Import Condition=" '$(TargetPortable)' == 'false' " Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Condition=" '$(TargetPortable)' == 'true' " Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
</PropertyGroup>
<!-- 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">
Expand Down

0 comments on commit 3aa8ed0

Please sign in to comment.