Comments (5)
@lbussell, Can you please investigate the size and include it here?
from dotnet-framework-docker.
[Triage]
This is the key bit of info: dotnet/fsharp#15878 (comment). The F# workload is not installed in the SDK. The workload name is Microsoft.VisualStudio.Component.FSharp.MSBuild
The workload's size is unknown. That should be determined first before adding it.
from dotnet-framework-docker.
To provide some additional background on what goes into the decision making process on what is included in the SDK images and what isn't. Our philosophy is to include the common set of workloads that generally satisfies a broad set of use cases. For use cases outside of this, it is expected customers will add the additional workloads/components they need on top of the .NET images. Without this approach, the .NET images could grow rather uncontrollably and therefore would become more undesirable for a lot of customers.
Regarding the F# workload specifically, there have only been one other request for it (#762)
from dotnet-framework-docker.
@shikhar456, I was able to reproduce the issue using your repo.
Adding the Microsoft.VisualStudio.Component.FSharp.MSBuild
VS Workload to the mcr.microsoft.com/dotnet/framework/sdk:4.8
image does not make the build work with the existing Dockerfile, however the error message is more helpful. It still needs a NuGet restore.
Try replacing your RUN msbuild ConsoleApplication1.sln
instruction with:
RUN dotnet restore && dotnet publish ConsoleApplication1.sln -c Release -o out --no-restore
Which then outputs ConsoleApplication1.exe
to the out
folder. This should work even without installing the F# workload. You can look at our dotnetapp sample Dockerfile for an example of how to apply this pattern if you're trying to containerize your Fsharp app.
@MichaelSimons: Can you please investigate the size and include it here?
It's a ~216 MB or roughly 5% increase on top of the .NET Framework SDK's image layers. @KevinRansom, is the F# Workload the most optimal way to add F# to a .NET Framework build image? Would there be any issue just relying on NuGet restore for this? How can we improve the UX that @shikhar456 is running into above? (no msbuild output).
from dotnet-framework-docker.
[Triage] Closing this as not planned since adding the FSharp Workload does not address the issue. Our guidance is to use the dotnet
CLI which is included in the .NET Framework SDK images. It would be up to the FSharp team to improve the UX of the error message in this situation.
from dotnet-framework-docker.
Related Issues (20)
- Automate the collection of release data and update the appropriate files HOT 2
- Investigate how to migrate off of Windows Server 2016 build agents HOT 1
- "Related repositories" links broken in MAR
- Running simple visual basic script for unzipping a zip file throws Unspecified Error HOT 1
- New-IISSiteBinding command not present in latest mcr.microsoft.com/dotnet/framework/wcf:4.8 HOT 7
- Example of logging support
- aspnet:4.8-windowsservercore-ltsc2022 won't start with port binding HOT 1
- Latest .NET 4.7.2 Images run into a tls error trying to install nuget HOT 7
- `RuntimeSdkImageTests.VerifyImagesWithWebApps` test is failing in PR validation on `sdk:4.8-windowsservercore-ltsc2016` image
- dotnet-framework-sdk claims that Visual Studio Build Tools are included – Yet, they are not HOT 3
- Image with tag 4.8-windowsservercore-ltsc2022 generate 403 error by default HOT 3
- Fault bucket , type 0 Event Name: APPCRASH HOT 7
- Code coverage tool doesn't seem to work HOT 3
- Improve targeting pack acquisition
- Add support for Server 2025
- Broken repo pages on Docker Hub
- "C:\Microsoft.Cpp.Default.props" was not found HOT 1
- error MSB8020: The build tools for v143 (Platform Toolset = 'v143') cannot be found. HOT 4
- powershell command hangs with the base image from .NET Framework 4.8 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dotnet-framework-docker.