Compilation in Windows Container fails #104600
Replies: 6 comments
-
.NET Framework specific questions goes to Developer Community. Your dockerfile includes setup for .NET Framework targeting pack 4.5.2 and above, but the error message indicates targeting pack for 4.0 is required. Targeting packs require exact version match. Can you check if any of your project is still targeting 4.0? Unfortunately, due to SHA-1 retirement, the older installers of .NET Framework targeting pack are no longer available for download. You can use NuGet-based reference assemblies pack instead. See https://learn.microsoft.com/dotnet/framework/migration-guide/reference-assemblies . |
Beta Was this translation helpful? Give feedback.
-
Alright, i just asked my coworker he has compiled the software on his computer and he has .net 4.8 installed. I have instaled .net with choco but it didnt work, do you know a nother way to install .net in a container or do you know what i did wrong? |
Beta Was this translation helpful? Give feedback.
-
The .NET Framework runtime and .NET Framework targeting pack are two different things. You need to ensure the targeting pack version. It's installed at |
Beta Was this translation helpful? Give feedback.
-
Hey, can you tell us how to install it? |
Beta Was this translation helpful? Give feedback.
-
See the previous comment #104146 (comment) . Migrating to the NuGet-based reference assemblies seems required, according to https://dotnet.microsoft.com/en-us/download/dotnet-framework/net40 . |
Beta Was this translation helpful? Give feedback.
-
Tagging subscribers to this area: @dotnet/area-meta |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
at the moment I am trying to compile a software in a windows container with the .net Framework 4.8.
The container is built by this dockerfile:
https://pastebin.com/cdJp6Pgr
If I start the compilation, the following error occurs:

Does anyone have a idea why it's not working?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions