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

(build) Build fails with Visual Studio 2022 version 17.8.2 installed. #28

Open
5 tasks done
corbob opened this issue Dec 8, 2023 · 0 comments
Open
5 tasks done

Comments

@corbob
Copy link
Member

corbob commented Dec 8, 2023

Checklist

  • I have verified this is the correct repository for opening this issue.
  • I have verified no other issues exist related to my problem.
  • I have verified this is not an issue for a specific package.
  • I have verified this issue is not security related.
  • I confirm I am using official, and not unofficial, or modified, Chocolatey products.

What You Are Seeing?

When trying to run the build script with Visual Studio 2022 version 17.8.2 installed, the build fails on the Microsoft.NETFramework.ReferenceAssemblies.net40 package. The message received is:

C:\code\rhino-licensing\src\Rhino.Licensing\Rhino.Licensing.csproj : error NU1605:
 Warning As Error: Detected package downgrade: Microsoft.NETFramework.ReferenceAss
emblies.net40 from 1.0.3 to 1.0.2. Reference the package directly from the project
 to select a different version.  [C:\code\rhino-licensing\Rhino.Licensing.sln]
C:\code\rhino-licensing\src\Rhino.Licensing\Rhino.Licensing.csproj : error NU1605:
  Rhino.Licensing -> Microsoft.NETFramework.ReferenceAssemblies 1.0.3 -> Microsoft
.NETFramework.ReferenceAssemblies.net40 (>= 1.0.3)  [C:\code\rhino-licensing\Rhino
.Licensing.sln]
C:\code\rhino-licensing\src\Rhino.Licensing\Rhino.Licensing.csproj : error NU1605:
  Rhino.Licensing -> Microsoft.NETFramework.ReferenceAssemblies.net40 (>= 1.0.2) [
C:\code\rhino-licensing\Rhino.Licensing.sln]

What is Expected?

Build should complete successfully.

How Did You Get This To Happen?

Used the (internal) Chocolatey Developer VM image to attempt to build. Received the error messagge.

Confirmed this did not happen on the previous version of the Chocolatey Developer VM image which had version 17.4.2 of Visual Studio 2022.

System Details

  • Operating System: Windows 10 22H2
  • Windows PowerShell version: 5.1
  • Chocolatey CLI Version: 2.2.2
  • Chocolatey Licensed Extension version: N/A
  • Chocolatey License type: N/A
  • Terminal/Emulator: ConHost

Installed Packages

Installed Packages
Chocolatey v2.2.2
7zip.install 23.1.0
azcopy10 10.21.1
baretail 3.50.0.20120226
chocolatey 2.2.2
chocolatey-compatibility.extension 1.0.0
chocolatey-core.extension 1.4.0
chocolatey-dotnetfx.extension 1.0.1
chocolatey-visualstudio.extension 1.11.1
chocolatey-windowsupdate.extension 1.0.5
DotNet3.5 3.5.20160716
DotNet4.6.1 4.6.1055.20170308
dotnet4.7 4.7.2053.20190226
dotnet-6.0-aspnetruntime 6.0.25
dotnet-6.0-desktopruntime 6.0.25
dotnet-6.0-runtime 6.0.25
dotnet-6.0-sdk 6.0.417
dotnet-6.0-sdk-4xx 6.0.417
dotnet-8.0-sdk 8.0.100
dotnet-8.0-sdk-1xx 8.0.100
dotnetfx 4.8.0.20220524
dotnet-sdk 8.0.100
dotPeek 2023.3.0
fiddler 5.0.20211.51073
gh 2.39.2
git 2.43.0
git.install 2.43.0
gitextensions 4.2.1
glab.portable 1.35.0
gpg4win 4.2.0
gsudo 2.4.0
ilspy 8.2.0
KB2919355 1.0.20160915
KB2919442 1.0.20160915
KB2999226 1.0.20181019
KB3033929 1.0.5
KB3035131 1.0.3
KB3063858 1.0.0
KB3118401 1.0.5
keybase 6.2.1
linqpad7.install 7.8.7
netfx-4.7.2 4.7.2
netfx-4.7.2-devpack 4.7.2.20210903
netfx-4.8 4.8.0.20220524
netfx-4.8-devpack 4.8.0.20190930
nodejs-lts 20.10.0
notepadplusplus.install 8.6.0
nuget.commandline 6.8.0
NugetPackageExplorer 6.0.64
papercut 6.0.0
powershell-core 7.4.0
pwsh 7.4.0
resharper-platform 233.0.20231203.134050
sql-server-express 2022.16.0.1000
sql-server-management-studio 19.2.56.2
transifex-cli 1.6.10
vcredist140 14.38.33130
vcredist2015 14.0.24215.20170201
visualstudio2022professional 117.8.3
visualstudio2022-workload-manageddesktop 1.0.1
visualstudio2022-workload-netweb 1.0.0
visualstudio2022-workload-visualstudioextension 1.0.0
visualstudio-installer 2.0.3
vscode.install 1.84.2
wixtoolset 3.11.2
yarn 1.22.19
69 packages installed.

Output Log

C:\code\rhino-licensing\src\Rhino.Licensing\Rhino.Licensing.csproj : error NU1605:
 Warning As Error: Detected package downgrade: Microsoft.NETFramework.ReferenceAss
emblies.net40 from 1.0.3 to 1.0.2. Reference the package directly from the project
 to select a different version.  [C:\code\rhino-licensing\Rhino.Licensing.sln]
C:\code\rhino-licensing\src\Rhino.Licensing\Rhino.Licensing.csproj : error NU1605:
  Rhino.Licensing -> Microsoft.NETFramework.ReferenceAssemblies 1.0.3 -> Microsoft
.NETFramework.ReferenceAssemblies.net40 (>= 1.0.3)  [C:\code\rhino-licensing\Rhino
.Licensing.sln]
C:\code\rhino-licensing\src\Rhino.Licensing\Rhino.Licensing.csproj : error NU1605:
  Rhino.Licensing -> Microsoft.NETFramework.ReferenceAssemblies.net40 (>= 1.0.2) [
C:\code\rhino-licensing\Rhino.Licensing.sln]

Additional Context

Two workarounds that I have used to complete the build:

  • Change the version of the dependent package to 1.0.3
  • Remove net40 as a build target.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant