In a new aspnet core 5 project with:
var accept = Microsoft.Net.Http.Headers.HeaderNames.Accept;
Exception when installed version of dotnet SDK is 5.0.200-preview.21077.7
CS0182 An attribute argument must be a constant expression
Which has been fixed to be a const string
in 5.0.202
When I install the latest x64 SDK version and restarted VS2019Preview, the same unpacked source is being referenced by VS and gives the same error.
Source is: C:\Program Files\dotnet\packs\Microsoft.AspNetCore.App.Ref\5.0.0\ref\net5.0\Microsoft.Net.Http.Headers.dll
When I run dotnet --info
, the preview and latest version are installed.
Can I delete the old pack files?
Should dotnet installation be cleaning up the old copies in the pack folder?
https://stackoverflow.com/questions/67411702/vs-caching-old-copy-of-unpacked-dotnet5preview May 06, 2021 at 12:05PM
没有评论:
发表评论