Do not remap framework assembly if it's version is higher than the runtime version
[mono.git] / msvc / scripts / csproj.tmpl
index de2f4cca5de05a79e14e2d0cab5fb630ce0ee690..16fab9278c9f10c81333841b7e59a80e61542c83 100644 (file)
@@ -5,27 +5,29 @@
     <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>\r
     <ProductVersion>9.0.30729</ProductVersion>\r
     <SchemaVersion>2.0</SchemaVersion>\r
-    <ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>\r
+    <ProjectGuid>@PROJECTGUID@</ProjectGuid>\r
     <OutputType>Library</OutputType>\r
     <NoWarn>@DISABLEDWARNINGS@</NoWarn>\r
     <OutputPath>@OUTPUTDIR@</OutputPath>\r
     @NOSTDLIB@\r
+    @NOCONFIG@\r
     @ALLOWUNSAFE@\r
     <AppDesignerFolder>Properties</AppDesignerFolder>\r
-    <RootNamespace></RootNamespace>\r
+    <RootNamespace>\r
+    </RootNamespace>\r
     <AssemblyName>@ASSEMBLYNAME@</AssemblyName>\r
     <TargetFrameworkVersion>v@FX_VERSION</TargetFrameworkVersion>\r
     <FileAlignment>512</FileAlignment>\r
   </PropertyGroup>\r
+  @SIGNATURE@\r
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">\r
     <DebugSymbols>true</DebugSymbols>\r
     <DebugType>full</DebugType>\r
     <NoWarn>@DISABLEDWARNINGS@</NoWarn>\r
     <Optimize>false</Optimize>\r
-    <DefineConstants>DEBUG;TRACE;@DEFINECONSTANTS@</DefineConstants>\r
+    <DefineConstants>TRACE;@DEFINECONSTANTS@</DefineConstants>\r
     <ErrorReport>prompt</ErrorReport>\r
     <WarningLevel>4</WarningLevel>\r
-    @ADDITIONALLIBPATHS@\r
   </PropertyGroup>\r
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">\r
     <DebugType>pdbonly</DebugType>\r
     <DefineConstants>@DEFINECONSTANTS@</DefineConstants>\r
     <ErrorReport>prompt</ErrorReport>\r
     <WarningLevel>4</WarningLevel>\r
-    @ADDITIONALLIBPATHS@\r
+  </PropertyGroup>\r
+  <!-- Set AddAdditionalExplicitAssemblyReferences to false, otherwise if targetting .NET4.0, \r
+  Microsoft.NETFramework.props will force a dependency on the assembly System.Core. This\r
+  is a problem to compile the Mono mscorlib.dll -->\r
+  <PropertyGroup>\r
+    <AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>\r
   </PropertyGroup>\r
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />\r
   <ItemGroup>\r
-@SOURCES@\r
-  </ItemGroup>\r
+@SOURCES@  </ItemGroup>\r
   <!-- To modify your build process, add your task inside one of the targets below and uncomment it. \r
        Other similar extension points exist, see Microsoft.Common.targets.\r
   <Target Name="BeforeBuild">\r
   </Target>\r
   -->\r
   <PropertyGroup>\r
-    <PreBuildEvent>@PREBUILD@</PreBuildEvent>\r
+@PREBUILD@\r
+@POSTBUILD@\r
   </PropertyGroup>\r
   <ItemGroup>\r
-@REFERENCES@\r
-  </ItemGroup>\r
+@REFERENCES@  </ItemGroup>\r
   <ItemGroup>\r
     <Folder Include="Properties\" />\r
   </ItemGroup>\r
-  @RESOURCES@\r
-</Project>\r
+@RESOURCES@</Project>\r