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

Fix 17561 - FS0243 - Unrecognized option: '--realsig- #17562

Merged
merged 2 commits into from
Aug 20, 2024

Conversation

KevinRansom
Copy link
Member

@KevinRansom KevinRansom commented Aug 19, 2024

image

Repro:
on a clean machine:

  1. Install Visual Studio 2022.11 --- https://visualstudio.microsoft.com/downloads/
  2. Install Dotnet Sdk 7.0.410 -- https://dotnet.microsoft.com/en-us/download/dotnet/7.0
  3. Create a new F# console project
  4. Edit the project file to resemble this:
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net7.0</TargetFramework>
    <FSharpPreferNetFrameworkTools>False</FSharpPreferNetFrameworkTools>
  </PropertyGroup>

  <ItemGroup>
    <Compile Include="Program.fs" />
  </ItemGroup>

</Project>
  1. Build the project and observe this error:
    image

The issue is that the buildtask emits --realsig- even though the projectfile and dependent props and targets do not mention it.
This pr fixes the issue by not emiting a value when realsig has not been specified.

There is no decent work around, other than build from the command line using dotnet build.

@KevinRansom KevinRansom requested a review from a team as a code owner August 19, 2024 22:59
Copy link
Contributor

✅ No release notes required

@KevinRansom KevinRansom changed the base branch from main to release/dev17.11 August 19, 2024 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants