-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using new-style csproj with .NET Framework, the default TargetPlatform is x86 rather than AnyCPU #3492
Milestone
Comments
tag @nguerrera |
need to add |
Faced same issue - solved by adding those elements in the "common.sdk.targets" file:
which is imported in every SDK style project like this |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Visual Studio Version:
2019 (16.2.0)
Summary:
When using the new-style (CPS?) csproj but targeting .NET Framework, the default TargetPlatform is differe than either .NET Core or old-style .NET Framework csprojs (x86 rather than AnyCPU).
Steps to Reproduce:
File -> New -> Project -> .NET Core exe
Unload the csproj and replace the target framework line with:
<TargetFramework>net472</TargetFramework>
Releoad the project and check its properties
Expected Behavior:
Target platform in AnyCPU.
Actual Behavior:
Target platform is x86.
User Impact:
Confusing behavior when restoring NuGet packages, and inconsistency with all other C# project variants.
The text was updated successfully, but these errors were encountered: