Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Commit

Permalink
Use AnyCPU as the target platform
Browse files Browse the repository at this point in the history
This avoids an annoying NuGet bug (NuGet/Home#4316)
that prevents restore from `msbuild /t:restore`
  • Loading branch information
kzu committed Feb 20, 2017
1 parent 557ba61 commit 5d5f949
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 15 deletions.
20 changes: 12 additions & 8 deletions ApiIntersect.sln
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
# Visual Studio 15
VisualStudioVersion = 15.0.26214.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ApiIntersect", "ApiIntersect\ApiIntersect.csproj", "{CD767D93-6C99-4D6A-A303-3C139A73400E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x86 = Debug|x86
Release|x86 = Release|x86
Debug|AnyCPU = Debug|AnyCPU
Release|AnyCPU = Release|AnyCPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{CD767D93-6C99-4D6A-A303-3C139A73400E}.Debug|x86.ActiveCfg = Debug|x86
{CD767D93-6C99-4D6A-A303-3C139A73400E}.Debug|x86.Build.0 = Debug|x86
{CD767D93-6C99-4D6A-A303-3C139A73400E}.Release|x86.ActiveCfg = Release|x86
{CD767D93-6C99-4D6A-A303-3C139A73400E}.Release|x86.Build.0 = Release|x86
{CD767D93-6C99-4D6A-A303-3C139A73400E}.Debug|AnyCPU.ActiveCfg = Debug|Any CPU
{CD767D93-6C99-4D6A-A303-3C139A73400E}.Debug|AnyCPU.Build.0 = Debug|Any CPU
{CD767D93-6C99-4D6A-A303-3C139A73400E}.Release|AnyCPU.ActiveCfg = Release|Any CPU
{CD767D93-6C99-4D6A-A303-3C139A73400E}.Release|AnyCPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(MonoDevelopProperties) = preSolution
Policies = $0
Expand Down
14 changes: 7 additions & 7 deletions ApiIntersect/ApiIntersect.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Import Project="..\packages\NuGet.Build.Packaging.0.1.173\build\NuGet.Build.Packaging.props" Condition="Exists('..\packages\NuGet.Build.Packaging.0.1.173\build\NuGet.Build.Packaging.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{CD767D93-6C99-4D6A-A303-3C139A73400E}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>AppleIntersector</RootNamespace>
Expand All @@ -12,7 +12,7 @@
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
Expand All @@ -21,9 +21,9 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<PlatformTarget>x86</PlatformTarget>
<PlatformTarget>AnyCPU</PlatformTarget>
<ConsolePause>false</ConsolePause>
<IntermediateOutputPath>obj\x86\Debug</IntermediateOutputPath>
<IntermediateOutputPath>obj\Debug</IntermediateOutputPath>
<ExternalConsole>false</ExternalConsole>
<Commandlineparameters>-i /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Xamarin.iOS.dll -i /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.WatchOS/Xamarin.WatchOS.dll -i /Library/Frameworks/Xamarin.Mac.framework/Versions/Current/lib/mono/Xamarin.Mac/Xamarin.Mac.dll -i /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.TVOS/Xamarin.TVOS.dll -b ObjCRuntime.Constants -b ObjCRuntime.BlockProxyAttribute -b ObjCRuntime.DesignatedInitializerAttribute -f /Library/Frameworks/Mono.framework/Versions/Current/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile7 -vvv</Commandlineparameters>
<RunWithWarnings>true</RunWithWarnings>
Expand All @@ -34,14 +34,14 @@
<NoStdLib>false</NoStdLib>
<WarningsNotAsErrors />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<Optimize>true</Optimize>
<OutputPath>bin\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ExternalConsole>true</ExternalConsole>
<PlatformTarget>x86</PlatformTarget>
<IntermediateOutputPath>obj\x86\Release</IntermediateOutputPath>
<PlatformTarget>AnyCPU</PlatformTarget>
<IntermediateOutputPath>obj\Release</IntermediateOutputPath>
</PropertyGroup>
<ItemGroup>
<Reference Include="Mono.Cecil">
Expand Down

0 comments on commit 5d5f949

Please sign in to comment.