Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorMikayla Hutchinson <m.j.hutchinson@gmail.com>2019-01-17 01:13:02 +0300
committerMikayla Hutchinson <m.j.hutchinson@gmail.com>2019-01-17 07:29:30 +0300
commitec45d2e5ff61c406aa3ecc147fc5087ca655014a (patch)
treef1a0c526f4a3dfa79f442a3389734a473f499f64 /main
parent4f139d3cbe3f5d4b81d750380a47cc18502897ed (diff)
Common props to simplify sdk style projects
Diffstat (limited to 'main')
-rw-r--r--main/msbuild/MonoDevelop.AfterCommon.props26
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Core.csproj1
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Shell.csproj1
3 files changed, 28 insertions, 0 deletions
diff --git a/main/msbuild/MonoDevelop.AfterCommon.props b/main/msbuild/MonoDevelop.AfterCommon.props
index 4315f830c1..ec78f0c75f 100644
--- a/main/msbuild/MonoDevelop.AfterCommon.props
+++ b/main/msbuild/MonoDevelop.AfterCommon.props
@@ -5,8 +5,22 @@
</PropertyGroup>
<PropertyGroup>
+ <_IsSdkStyleProject>false</_IsSdkStyleProject>
+ <_IsSdkStyleProject Condition="'$(Configurations)' != '' and '$(Platforms)' != ''">true</_IsSdkStyleProject>
<!-- target framework for the core and addins -->
<MDFrameworkVersion>v4.7.2</MDFrameworkVersion>
+ <MDTargetFramework>net472</MDTargetFramework>
+ <!--
+ for sdk-style projects we can set the value directly.
+ old-style projects need to set it themselves or some IDE stuff breaks.
+ -->
+ <TargetFramework Condition="'$(_IsSdkStyleProject)'=='true'">$(MDTargetFramework)</TargetFramework>
+ </PropertyGroup>
+
+ <!-- set some common AssemblyInfo values so SDK-style projects don't have to set them -->
+ <PropertyGroup>
+ <AssemblyVersion>2.6.0</AssemblyVersion>
+ <AssemblyProduct>MonoDevelop</AssemblyProduct>
</PropertyGroup>
<!--
@@ -62,4 +76,16 @@
<Visible>False</Visible>
</DownloadNupkg>
</ItemDefinitionGroup>
+
+ <!-- default items -->
+ <ItemGroup Condition="'$(EnableDefaultItems)' == 'true'">
+ <EmbeddedResource Include="**\*.addin.xml" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder)" />
+ </ItemGroup>
+
+ <!-- default refs. the TargetFramework check is to exclude RefactoringEssentials -->
+ <ItemGroup Condition="'$(AddMonoDevelopCoreReferences)' == 'true'">
+ <ProjectReference Include="$(MonoDevelopRootDir)src\core\MonoDevelop.Core\MonoDevelop.Core.csproj" Private="False" />
+ <ProjectReference Include="$(MonoDevelopRootDir)src\core\MonoDevelop.Ide\MonoDevelop.Ide.csproj" Private="False" />
+ <ProjectReference Include="$(MonoDevelopRootDir)external\mono-addins\Mono.Addins\Mono.Addins.csproj" Private="False" />
+ </ItemGroup>
</Project>
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Core.csproj b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Core.csproj
index ed8221bf2d..797d5cc7f4 100644
--- a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Core.csproj
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Core.csproj
@@ -4,6 +4,7 @@
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{2E1FB0DF-F9BB-4909-9F32-2D9D022A8E57}</ProjectGuid>
+ <TargetFrameworkVersion>$(MDFrameworkVersion)</TargetFrameworkVersion>
<RootNamespace>Microsoft.WindowsAPICodePack</RootNamespace>
<AssemblyName>Microsoft.WindowsAPICodePack</AssemblyName>
<OutputPath>..\..\..\..\..\build\AddIns\WindowsPlatform</OutputPath>
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Shell.csproj b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Shell.csproj
index adb3982e19..bb45d71b83 100644
--- a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Shell.csproj
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Shell.csproj
@@ -4,6 +4,7 @@
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{AA0C00CB-8699-4F37-BFAE-40CA87ACC06D}</ProjectGuid>
+ <TargetFrameworkVersion>$(MDFrameworkVersion)</TargetFrameworkVersion>
<RootNamespace>Microsoft.WindowsAPICodePack.Shell</RootNamespace>
<AssemblyName>Microsoft.WindowsAPICodePack.Shell</AssemblyName>
<OutputPath>..\..\..\..\..\build\AddIns\WindowsPlatform</OutputPath>