Browse Source

Added check for BuildingInsideVisualStudio to define TargetFrameworks so VS doesn't throw a fit

pull/46/head
Anairkoen Schno 4 years ago
parent
commit
cf3bb991fd
2 changed files with 4 additions and 0 deletions
  1. +2
    -0
      IPA.Injector/IPA.Injector.csproj
  2. +2
    -0
      IPA.Loader/IPA.Loader.csproj

+ 2
- 0
IPA.Injector/IPA.Injector.csproj View File

@ -31,10 +31,12 @@
</PropertyGroup>
<PropertyGroup Condition=" '$(Platform)' == 'Net4' ">
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<TargetFrameworks Condition=" '$(BuildingInsideVisualStudio)' != 'true' ">net461</TargetFrameworks>
<DefineConstants>$(DefineConstants);NET4</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(Platform)' == 'Net3' ">
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<TargetFrameworks Condition=" '$(BuildingInsideVisualStudio)' != 'true' ">net35</TargetFrameworks>
<DefineConstants>$(DefineConstants);NET3</DefineConstants>
</PropertyGroup>
<ItemGroup>


+ 2
- 0
IPA.Loader/IPA.Loader.csproj View File

@ -35,10 +35,12 @@
</PropertyGroup>
<PropertyGroup Condition=" '$(Platform)' == 'Net4' ">
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<TargetFrameworks Condition=" '$(BuildingInsideVisualStudio)' != 'true' ">net461</TargetFrameworks>
<DefineConstants>$(DefineConstants);NET4</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(Platform)' == 'Net3' ">
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<TargetFrameworks Condition=" '$(BuildingInsideVisualStudio)' != 'true' ">net35</TargetFrameworks>
<DefineConstants>$(DefineConstants);NET3</DefineConstants>
</PropertyGroup>
<PropertyGroup>


Loading…
Cancel
Save