You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to try Chisel but it's failing the build immediately after adding the package.
Steps to reproduce:
Create a new console application project.
Add the Chisel package.
Notice the MissingMethodException error in the error list.
Try to compile. It also shows the MissingMethodException in the build log.
MissingMethodException: Method not found: 'NuGet.Frameworks.NuGetFramework NuGet.ProjectModel.TargetFrameworkInformation.get_FrameworkName()'.
at Chisel.LockFileExtensions.ReadPackages(LockFile lockFile, String tfm, String rid, Predicate`1 filter)
at Chisel.Chisel.ProcessGraph() in /_/src/Chisel/Chisel.cs:line 178
at Chisel.Chisel.Execute() in /_/src/Chisel/Chisel.cs:line 137
I get the same error from both of your sample projects if I open the Chisel solution itself.
But there I also get additional things:
Unable to read project information for 'TestApp': '[]' is not a valid version string.
Unable to resolve the .NET SDK version as specified in the global.json located at C:\path\to\Chisel\global.json.
Unable to locate the .NET SDK version '8.0.100' as specified by global.json, please check that the specified version is installed.
I don't know if it is related to the MissingMethodException error, but the last two messages seem to indicate that the problem is that I'm using the .NET 9 SDK and don't have the .NET 8 SDK installed.
All .NET SDKs were installed by Visual Studio. I don't manage them myself. I'm using version 17.12.3 of Visual Studio currently.
My dotnet --info output:
.NET SDK:
Version: 9.0.101
Commit: eedb237549
Workload version: 9.0.100-manifests.4a280210
MSBuild version: 17.12.12+1cce77968
Runtime Environment:
OS Name: Windows
OS Version: 10.0.19045
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\9.0.101\
.NET workloads installed:
[aspire]
Installation Source: VS 17.12.35527.113
Manifest Version: 8.2.2/8.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.aspire\8.2.2\WorkloadManifest.json
Install Type: Msi
Configured to use loose manifests when installing new manifests.
Host:
Version: 9.0.0
Architecture: x64
Commit: 9d5a6a9aa4
.NET SDKs installed:
6.0.301 [C:\Program Files\dotnet\sdk]
9.0.101 [C:\Program Files\dotnet\sdk]
The text was updated successfully, but these errors were encountered:
I wanted to try Chisel but it's failing the build immediately after adding the package.
Steps to reproduce:
I get the same error from both of your sample projects if I open the Chisel solution itself.
But there I also get additional things:
I don't know if it is related to the MissingMethodException error, but the last two messages seem to indicate that the problem is that I'm using the .NET 9 SDK and don't have the .NET 8 SDK installed.
All .NET SDKs were installed by Visual Studio. I don't manage them myself. I'm using version 17.12.3 of Visual Studio currently.
My
dotnet --info
output:The text was updated successfully, but these errors were encountered: