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

The "ProcessFrameworkReferences" task can't find NuGet.Frameworks, Version=5.9.1.8, Culture=neutral, PublicKeyToken=31bf3856ad364e35 #1

Open
r-pankevicius opened this issue May 5, 2021 · 0 comments

Comments

@r-pankevicius
Copy link

Watched Mark Rendle - Automate Yourself Out Of a Job With Roslyn video and tried to play with it.

Steps:

  1. git clone repo
  2. Open with Visual Studio 16.9.4
  3. In Project properties, Debug, Application arguments write: ..\..\..\..\..\RoslynDemo.sln (i.e. try to run on self)
  4. Compile and run.

Output:

Msbuild failed when processing the file 'C:\~src\VisualRecode\BuildStuff2020\src\RoslynDemo\RoslynDemo.csproj' with message: C:\Program Files\dotnet\sdk\5.0.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets: (63, 5): The "ProcessFrameworkReferences" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load file or assembly 'NuGet.Frameworks, Version=5.9.1.8, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.
File name: 'NuGet.Frameworks, Version=5.9.1.8, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
   at Microsoft.NET.Build.Tasks.ProcessFrameworkReferences.ExecuteCore()
   at Microsoft.NET.Build.Tasks.TaskBase.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask)
RoslynDemo.AutoGeneratedExtensions
  IsAutoGenerated
  BeginsWithAutoGeneratedComment
RoslynDemo.DependenciesDemo
  ListAllUsedTypes
  GetTypes
RoslynDemo.ListTypesVisitor
  VisitNamespace
  VisitNamedType
  VisitMethod

etc...

Upgrading
<PackageReference Include="NuGet.ProjectModel" Version="5.8.0" />
to the latest:
<PackageReference Include="NuGet.ProjectModel" Version="5.9.1" />
solves the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant