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

Client project fails to build with .NET 8.0.404 but builds with .NET 8.0.100 #366

Open
kevinbarabash opened this issue Dec 5, 2024 · 2 comments

Comments

@kevinbarabash
Copy link

kevinbarabash commented Dec 5, 2024

I ran into this issue today when trying to set up a GitHub Actions workflow to build my project. The default 8.x version that gets installed by the setup-dotnet action is 8.0.404. When building using this version, I was running into the following error:

Error: /home/runner/work/escalier-next/escalier-next/src/Escalier.Playground/Main.fs(149,25): 
error FS0039: The value, namespace, type or module 'CssScopes' is not defined. 
[/home/runner/work/escalier-next/escalier-next/src/Escalier.Playground/Escalier.Playground.fsproj]

Switching to 8.0.100 fixed the issue. If anyone else runs into this issue with GitHub Actions, I had to set this in global.json like so:

{
  "sdk": {
    "version": "8.0.100"
  }
}

since the dotnet-version option for the setup-dotnet appears to do nothing.

@Tarmil
Copy link
Member

Tarmil commented Dec 5, 2024

This should be fixed in v0.24. I haven't made the announcement yet (need to finish updating the project template), but it is already published on nuget.org. You can try it out, make sure to update Bolero.Build in particular for this issue

@kevinbarabash
Copy link
Author

I'm using v0.24. Here's the .fsproj file for the project in question:

<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
    <PropertyGroup>
        <TargetFramework>net8.0</TargetFramework>
        <RootNamespace>Escalier.Playground</RootNamespace>
    </PropertyGroup>
    <ItemGroup>
        <Compile Include="Main.fs"/>
        <Compile Include="Startup.fs"/>
    </ItemGroup>
    <ItemGroup>
        <PackageReference Include="Bolero" Version="0.24.37"/>
        <PackageReference Include="Bolero.Build" Version="0.24.37"/>
        <PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.*"/>
        <PackageReference Include="System.Net.Http.Json" Version="8.0.*"/>
    </ItemGroup>
</Project>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants