Open paule96 opened 1 year ago
Same here, I'm getting bit by the dotnet version as well.
Same here, we are using it inside a docker image build and adding a second sdk is not an option
Same here, we are using it inside a docker image build and adding a second sdk is not an option
@mesies , I am able to blend dotnet7.0 blazor wasm and dartsassbuilder by installing the second SDK within the 'build' image in my docker file.
Here's the pre-amble in my dockerfile:
FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base WORKDIR /app EXPOSE 80 EXPOSE 443
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build WORKDIR /src
RUN curl -L https://raw.githubusercontent.com/Microsoft/artifacts-credprovider/master/helpers/installcredprovider.sh | sh RUN curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin -Channel 6.0 -Runtime dotnet -InstallDir /usr/share/dotnet
(These are linux commands, but there are Windows commands that can install a runtime - I recall seeing instructions using powershell to download the installer as part of the docker build command, but don't have them handy, I'll try to track them down lateR).
Here's the Windows version of the above install script: # escape=`
FROM mcr.microsoft.com/windows/servercore:ltsc2022
RUN powershell -Command $ErrorActionPreference = 'Stop';
$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest
-UseBasicParsing -Uri https://dot.net/v1/dotnet-install.ps1
-OutFile dotnet-install.ps1; ./dotnet-install.ps1
-InstallDir '/Program Files/dotnet' -Channel 6.0
-Runtime dotnet; Remove-Item -Force dotnet-install.ps1
&& setx /M PATH "%PATH%;C:\Program Files\dotnet"
These instructions are from https://github.com/dotnet/dotnet-docker/blob/main/documentation/scenarios/installing-dotnet.md
Fucking do it bro it's been 8 months now
It seems like there is a Pull request now for this: #34.
Until that, setting the environment variable DOTNET_ROLL_FORWARD
to LatestMajor
solved this for me.
https://learn.microsoft.com/en-us/dotnet/core/versions/selection
Can the pull request #34 get some attention? It has been open for 5 weeks and seems to be a natural fit for DartSassBuilder 1.0.1.
needed also for .net 8
What are people using instead of this tool, for .NET 7 / 8?
It seems like there is a Pull request now for this: #34. Until that, setting the environment variable
DOTNET_ROLL_FORWARD
toLatestMajor
solved this for me. https://learn.microsoft.com/en-us/dotnet/core/versions/selectionWhat are people using instead of this tool, for .NET 7 / 8?
@lonix1 We are doing what @kovianyo suggested
Thanks. That's a good option if you're allowed to do it; here we pin versions to patch so cannot pin to major.
Regardless, seems the repo owner has not been on github since March, so this library is probably abandoned. If I find an alternative I'll post here.
I abandoned this project, because it appears to be dead. I replaced it with the Visual Studio Extension Web Compiler. It handles all of the compiling on your local machine, and generates a .css and .min.css that I check into source control. Now my build server has one less dependency to deal with. I have been very pleased with this solution.
It would be nice, if this build tool works also if you only have dotnet 7 installed. Right now you need two sdks installed to run the build successfully for a dotnet 7 project.