Skip to content
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

Unable to target .NET Framework 3.5 or lower with .csproj #369

Closed
TheRealPiotrP opened this issue Nov 9, 2016 · 2 comments
Closed

Unable to target .NET Framework 3.5 or lower with .csproj #369

TheRealPiotrP opened this issue Nov 9, 2016 · 2 comments
Assignees
Labels
Milestone

Comments

@TheRealPiotrP
Copy link
Contributor

Steps to reproduce

Create a new project with dotnet new
Change the TargetFramework to net35 or lower
Add <RuntimeIdentifier>win10-x64</RuntimeIdentifier> to the .csproj
dotnet restore
dotnet build

I've been seeing this issue since the move to msbuild. Targeting .NET 3.5 and lower works in the Preview 2 release SDK. All the relevant targeting packs are installed.

Expected behavior

A successful build

Actual behavior

Fails with the error:
... error MSB3644: The reference assemblies for framework ".NETFramework,Version=v3.5" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. ...

Environment data

dotnet --info output:

.NET Command Line Tools (1.0.0-preview3-004056)

Product Information:
Version: 1.0.0-preview3-004056
Commit SHA-1 hash: ccc4968

Runtime Environment:
OS Name: Windows
OS Version: 10.0.14393
OS Platform: Windows
RID: win10-x64

Moved from https://github.com/dotnet/cli/issues/4626 for @Thealexbarney.

@srivatsn srivatsn added the Bug label Nov 10, 2016
@srivatsn srivatsn added this to the 1.0 RC2 milestone Nov 10, 2016
@nguerrera
Copy link
Contributor

nguerrera commented Nov 10, 2016

Note that this only reproduces when building with core msbuild. Building the same project with desktop msbuild works fine.

@nguerrera
Copy link
Contributor

Moved to dotnet/msbuild#1333

sbomer pushed a commit to sbomer/sdk that referenced this issue Sep 19, 2017
Update shim versions to match the netfx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants