diff options
author | per202 <jean-michel.perraud@csiro.au> | 2013-01-04 11:21:54 +0400 |
---|---|---|
committer | per202 <jean-michel.perraud@csiro.au> | 2013-01-04 11:21:54 +0400 |
commit | fc9380df56422626c3321a8f30acd7769fb012b6 (patch) | |
tree | 32f7f222b6d1f93ea1f05188ab6f4beebbb6b95a /msvc/scripts/csproj.tmpl | |
parent | 64d372269ef3bc1b11b693f59da7e3747803d539 (diff) |
Initial work to make the mono csproj files mroe readily compilable in Visual Studio. This is work finally following up on my offer in http://lists.ximian.com/pipermail/mono-devel-list/2012-May/038908.html.
Diffstat (limited to 'msvc/scripts/csproj.tmpl')
-rw-r--r-- | msvc/scripts/csproj.tmpl | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/msvc/scripts/csproj.tmpl b/msvc/scripts/csproj.tmpl index 2c8abd2076b..20f27f5005c 100644 --- a/msvc/scripts/csproj.tmpl +++ b/msvc/scripts/csproj.tmpl @@ -5,22 +5,20 @@ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
+ <ProjectGuid>@PROJECTGUID@</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>@DISABLEDWARNINGS@</NoWarn>
<OutputPath>@OUTPUTDIR@</OutputPath>
@NOSTDLIB@
+ @NOCONFIG@
@ALLOWUNSAFE@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace></RootNamespace>
<AssemblyName>@ASSEMBLYNAME@</AssemblyName>
<TargetFrameworkVersion>v@FX_VERSION</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
- <!-- Filter out System.Core added by: Microsoft.NETFramework.props -->
- <AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>@DISABLEDWARNINGS@</NoWarn>
@@ -31,7 +29,6 @@ @ADDITIONALLIBPATHS@
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<NoWarn>@DISABLEDWARNINGS@</NoWarn>
<Optimize>true</Optimize>
@@ -40,9 +37,15 @@ <WarningLevel>4</WarningLevel>
@ADDITIONALLIBPATHS@
</PropertyGroup>
+ <!-- Set AddAdditionalExplicitAssemblyReferences to false, otherwise if targetting .NET4.0,
+ Microsoft.NETFramework.props will force a dependency on the assembly System.Core. This
+ is a problem to compile the Mono mscorlib.dll -->
+ <PropertyGroup>
+ <AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
+ </PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
-@SOURCES@
+ @SOURCES@
</ItemGroup>
<!-- 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.
@@ -53,9 +56,10 @@ -->
<PropertyGroup>
<PreBuildEvent>@PREBUILD@</PreBuildEvent>
+ <PostBuildEvent>@POSTBUILD@</PostBuildEvent>
</PropertyGroup>
<ItemGroup>
-@REFERENCES@
+ @REFERENCES@
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
|