Skip to content

Commit 476f1d8

Browse files
committed
Add a portable project to make it work with any target
1 parent 2673c0c commit 476f1d8

File tree

3 files changed

+69
-2
lines changed

3 files changed

+69
-2
lines changed

AutoProperties.sln

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio 15
4-
VisualStudioVersion = 15.0.26430.13
4+
VisualStudioVersion = 15.0.26430.15
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AutoProperties.Fody", "AutoProperties.Fody\AutoProperties.Fody.csproj", "{9AF0FE45-9667-4033-93A5-799846B1A19A}"
77
EndProject
@@ -10,6 +10,7 @@ EndProject
1010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Nuget", "NuGet\Nuget.csproj", "{878E96F1-3F27-4969-AC21-A66C7FA1ADF2}"
1111
ProjectSection(ProjectDependencies) = postProject
1212
{9AF0FE45-9667-4033-93A5-799846B1A19A} = {9AF0FE45-9667-4033-93A5-799846B1A19A}
13+
{59ACF1B9-0CB8-4673-9E00-E742E2616959} = {59ACF1B9-0CB8-4673-9E00-E742E2616959}
1314
EndProjectSection
1415
EndProject
1516
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyToProcess", "AssemblyToProcess\AssemblyToProcess.csproj", "{270EBFBC-0421-4522-AA40-84D66238A19F}"
@@ -21,6 +22,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
2122
README.md = README.md
2223
EndProjectSection
2324
EndProject
25+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AutoProperties.portable", "AutoProperties\AutoProperties.portable.csproj", "{59ACF1B9-0CB8-4673-9E00-E742E2616959}"
26+
EndProject
2427
Global
2528
GlobalSection(SolutionConfigurationPlatforms) = preSolution
2629
Debug|Any CPU = Debug|Any CPU
@@ -47,6 +50,10 @@ Global
4750
{88856D9C-8C44-4F9C-8B3D-6C29CCC7B08E}.Debug|Any CPU.Build.0 = Debug|Any CPU
4851
{88856D9C-8C44-4F9C-8B3D-6C29CCC7B08E}.Release|Any CPU.ActiveCfg = Release|Any CPU
4952
{88856D9C-8C44-4F9C-8B3D-6C29CCC7B08E}.Release|Any CPU.Build.0 = Release|Any CPU
53+
{59ACF1B9-0CB8-4673-9E00-E742E2616959}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
54+
{59ACF1B9-0CB8-4673-9E00-E742E2616959}.Debug|Any CPU.Build.0 = Debug|Any CPU
55+
{59ACF1B9-0CB8-4673-9E00-E742E2616959}.Release|Any CPU.ActiveCfg = Release|Any CPU
56+
{59ACF1B9-0CB8-4673-9E00-E742E2616959}.Release|Any CPU.Build.0 = Release|Any CPU
5057
EndGlobalSection
5158
GlobalSection(SolutionProperties) = preSolution
5259
HideSolutionNode = FALSE
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{59ACF1B9-0CB8-4673-9E00-E742E2616959}</ProjectGuid>
8+
<ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
9+
<OutputType>Library</OutputType>
10+
<AppDesignerFolder>Properties</AppDesignerFolder>
11+
<RootNamespace>AutoProperties</RootNamespace>
12+
<AssemblyName>AutoProperties</AssemblyName>
13+
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
14+
<TargetFrameworkProfile>Profile328</TargetFrameworkProfile>
15+
<DefaultLanguage>en-US</DefaultLanguage>
16+
<FileAlignment>512</FileAlignment>
17+
<WarningLevel>4</WarningLevel>
18+
<OutputPath>bin\$(Configuration)\$(TargetFrameworkVersion)\$(TargetFrameworkProfile)\</OutputPath>
19+
<IntermediateOutputPath>obj\$(Configuration)\$(TargetFrameworkVersion)\$(TargetFrameworkProfile)\</IntermediateOutputPath>
20+
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
21+
<ResolveNuGetPackages>false</ResolveNuGetPackages>
22+
<ErrorReport>prompt</ErrorReport>
23+
<DocumentationFile>$(OutputPath)AutoProperties.XML</DocumentationFile>
24+
</PropertyGroup>
25+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
26+
<DebugSymbols>true</DebugSymbols>
27+
<DebugType>full</DebugType>
28+
<Optimize>false</Optimize>
29+
<DefineConstants>DEBUG;TRACE</DefineConstants>
30+
</PropertyGroup>
31+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
32+
<DebugType>pdbonly</DebugType>
33+
<Optimize>true</Optimize>
34+
<DefineConstants>TRACE</DefineConstants>
35+
</PropertyGroup>
36+
<PropertyGroup>
37+
<SignAssembly>true</SignAssembly>
38+
</PropertyGroup>
39+
<PropertyGroup>
40+
<AssemblyOriginatorKeyFile>AutoProperties.snk</AssemblyOriginatorKeyFile>
41+
</PropertyGroup>
42+
<ItemGroup>
43+
<None Include="AutoProperties.snk" />
44+
</ItemGroup>
45+
<ItemGroup>
46+
<Compile Include="..\Trademark.cs">
47+
<Link>Trademark.cs</Link>
48+
</Compile>
49+
<Compile Include="..\Version.cs">
50+
<Link>Version.cs</Link>
51+
</Compile>
52+
<Compile Include="BackingFieldAccessExtensions.cs" />
53+
<Compile Include="BypassAutoPropertySettersInConstructorsAttribute.cs" />
54+
</ItemGroup>
55+
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
56+
</Project>

NuGet/Nuget.csproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
<ItemGroup>
1616
<None Include="AutoProperties.Fody.nuspec" />
1717
<None Include="install.ps1" />
18-
<None Include="packages.config" />
18+
<None Include="packages.config">
19+
<SubType>Designer</SubType>
20+
</None>
1921
<None Include="uninstall.ps1" />
2022
</ItemGroup>
2123
<Target Name="Clean">
@@ -27,6 +29,8 @@
2729
<MakeDir Directories="$(SolutionDir)NuGetBuild" />
2830
<Copy SourceFiles="$(SolutionDir)AutoProperties\bin\$(Configuration)\netstandard1.0\AutoProperties.dll" DestinationFolder="$(SolutionDir)NuGetBuild\lib\netstandard1.0" />
2931
<Copy SourceFiles="$(SolutionDir)AutoProperties\bin\$(Configuration)\netstandard1.0\AutoProperties.xml" DestinationFolder="$(SolutionDir)NuGetBuild\lib\netstandard1.0" />
32+
<Copy SourceFiles="$(SolutionDir)AutoProperties\bin\$(Configuration)\v4.0\Profile328\AutoProperties.dll" DestinationFolder="$(SolutionDir)NuGetBuild\lib\portable-net40+sl50+win+wpa81+wp80" />
33+
<Copy SourceFiles="$(SolutionDir)AutoProperties\bin\$(Configuration)\v4.0\Profile328\AutoProperties.xml" DestinationFolder="$(SolutionDir)NuGetBuild\lib\portable-net40+sl50+win+wpa81+wp80" />
3034
<Copy SourceFiles="$(SolutionDir)NuGet\AutoProperties.Fody.nuspec" DestinationFolder="$(SolutionDir)NuGetBuild" />
3135
<Copy SourceFiles="$(ProjectDir)install.ps1" DestinationFolder="$(SolutionDir)NuGetBuild\Tools" />
3236
<Copy SourceFiles="$(ProjectDir)uninstall.ps1" DestinationFolder="$(SolutionDir)NuGetBuild\Tools" />

0 commit comments

Comments
 (0)