Closed v-reinawang closed 4 months ago
@joperezr @vijayrkn FYI on this issue that was reported for updating solution from 8.0.0 to 8.0.1.
From the repro steps, it isn't clear to me if the project was restored after updating packages. The issue seems like something that would happen if full restore didn't happen.
@BillHiebert @vijayrkn should we open an issue on VS tooling for this? I'd expect that updating NuGet packages and doing a build should trigger a restore when needed, no?
cc: @joperezr @v-reinawang
@BillHiebert @vijayrkn https://github.com/dotnet/aspire/issues/4310 is a similar issue where the user needs to do a full clean and rebuild after updating their packages from Aspire 8.0.1 to Aspire 8.1.
@BillHiebert @vijayrkn #4310 is a similar issue where the user needs to do a full clean and rebuild after updating their packages from Aspire 8.0.1 to Aspire 8.1.
@balachir build and restore is orchestrated by the managed project system. I would open an issue there https://github.com/dotnet/project-system
I opened a new issue #9489 in https://github.com/dotnet/project-system
This might not be Aspire-specific. It seems like an instance of https://github.com/dotnet/project-system/issues/8014. We will investigate on the Project System side.
INSTALL STEPS
Clean machine: Win11 x64 23h2 ENU
Install VS 17.10 GA FB
Install Aspire 8.0.1 workload
REPRO STEPS
Open an existing 8.0.0 solutions (Aspire Starter Application), build and run - works
Right click Solution > Manage NuGet Packages for Solution > Update
Select 8.0.1 resource in the Package source drop-down box > Select all packages > Update
Right click the solution > Build and F5
NOTE: If right click the solution > Rebuild solution, this project can be run successfully
ACTUAL System.IO.FileNotFoundException HResult=0x80070002 Message=Could not load file or assembly 'Microsoft.Extensions.ServiceDiscovery, Version=8.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified. Source=AspireApp1.ServiceDefaults StackTrace: at Microsoft.Extensions.Hosting.Extensions.AddServiceDefaults(IHostApplicationBuilder builder) in C:\Users\v-reinawang\Desktop\AspireApp1\AspireApp1\AspireApp1.ServiceDefaults\Extensions.cs:line 35 at Program.$(String[] args) in C:\Users\v-reinawang\Desktop\AspireApp1\AspireApp1\AspireApp1.ApiService\Program.cs:line 4
EXPECTED Can run successfully.