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

Cannot target to .NET8 by FAKE_SDK_RESOLVER_CUSTOM_DOTNET_VERSION #2817

Open
hglee opened this issue Sep 3, 2024 · 1 comment
Open

Cannot target to .NET8 by FAKE_SDK_RESOLVER_CUSTOM_DOTNET_VERSION #2817

hglee opened this issue Sep 3, 2024 · 1 comment

Comments

@hglee
Copy link

hglee commented Sep 3, 2024

Description

When targeting against .NET8 by specifying FAKE_SDK_RESOLVER_CUSTOM_DOTNET_VERSION, Fake assembly cannot be referenced.

Repro steps

  1. Download CLI runner: fake-dotnetcore-win7-x64.zip

  2. Run new command window

  3. Set env by command : set FAKE_SDK_RESOLVER_CUSTOM_DOTNET_VERSION=8.0

  4. Run command: fake.exe -vv run Build.fsx

Expected behavior

I expected it to build without any problems

Actual behavior

The error occurs as follows(the full log and script are attached):

Script is not valid, see standard error for details.

Script is not valid:

	C:\tmp\test611\build.fsx (5,5)-(5,9): Error FS0039: 'Fake' 네임스페이스 또는 모듈이 정의되지 않았습니다.

	C:\tmp\test611\build.fsx (6,5)-(6,9): Error FS0039: 'Fake' 네임스페이스 또는 모듈이 정의되지 않았습니다.

	C:\tmp\test611\build.fsx (8,0)-(8,6): Error FS0039: 'Target' 값, 네임스페이스, 형식 또는 모듈이 정의되지 않았습니다.

	C:\tmp\test611\build.fsx (12,0)-(12,6): Error FS0039: 'Target' 값, 네임스페이스, 형식 또는 모듈이 정의되지 않았습니다.

20240903.txt
Build.txt

Known workarounds

Related information

  • Operating system : Windows11
  • Branch
  • .NET Runtime, CoreCLR or Mono Version : .NET 8
  • Indications of severity
  • Version of FAKE (4.X, 5.X, 6.x) : v6.1.1
  • (if performance issue) Performance information, links to performance testing scripts
Copy link
Contributor

github-actions bot commented Sep 3, 2024

Welcome to the FAKE community! Thank you so much for creating your first issue and therefore improving the 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

1 participant