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

Compile corehost.sln Error NETSDK1013 TargetFramework value "" is not recognized #88116

Closed
tangyanzhi opened this issue Jun 28, 2023 · 2 comments

Comments

@tangyanzhi
Copy link

Description

After I compiled the corehost .sln, I got the following error

Severity Code Description Project File Line suppresses status
Error NETSDK1013 TargetFramework value "" is not recognized. It may be because of a spelling error. 
If spelled correctly, you must explicitly specify the TargetFrameworkIdentifier and/or TargetFrameworkVersion properties.	
ijw	C:Program Filesdotnetsdk8.0.100-preview.5.23303.2SdksMicrosoft.NET.SdktargetsMicrosoft.NET.TargetFrameworkInference.targets	96	

I located in the wrong place,dotnet\sdk\8.0.100-preview.5.23303.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets

 <NETSdkError Condition="!$(TargetFramework.Contains(';'))"
                 ResourceName="CannotInferTargetFrameworkIdentifierAndVersion"
                 FormatArguments="$([MSBuild]::Escape('$(TargetFramework)'))" />

How can I fix this error?

Reproduction Steps

ditto

Expected behavior

I hope to compile corehost .sln succeed

Actual behavior

I was expecting to compile the corehost .sln, but the result is wrong

Regression?

No response

Known Workarounds

No response

Configuration

C:\Users\Administrator>dotnet --info
.NET SDK:
 Version:   8.0.100-preview.5.23303.2
 Commit:    3fe444af72

运行时环境:
 OS Name:     Windows
 OS Version:  10.0.22621
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\8.0.100-preview.5.23303.2\

.NET workloads installed:
没有要显示的已安装工作负载。

Host:
  Version:      8.0.0-preview.5.23280.8
  Architecture: x64
  Commit:       bc78804f5d

.NET SDKs installed:
  7.0.100 [C:\Program Files\dotnet\sdk]
  7.0.302 [C:\Program Files\dotnet\sdk]
  8.0.100-preview.5.23303.2 [C:\Program Files\dotnet\sdk]

Other information

No response

@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Jun 28, 2023
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Jun 28, 2023
@ghost
Copy link

ghost commented Jun 28, 2023

Tagging subscribers to this area: @hoyosjs
See info in area-owners.md if you want to be subscribed.

Issue Details

Description

After I compiled the corehost .sln, I got the following error

Severity Code Description Project File Line suppresses status
Error NETSDK1013 TargetFramework value "" is not recognized. It may be because of a spelling error. 
If spelled correctly, you must explicitly specify the TargetFrameworkIdentifier and/or TargetFrameworkVersion properties.	
ijw	C:Program Filesdotnetsdk8.0.100-preview.5.23303.2SdksMicrosoft.NET.SdktargetsMicrosoft.NET.TargetFrameworkInference.targets	96	

I located in the wrong place,dotnet\sdk\8.0.100-preview.5.23303.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets

 <NETSdkError Condition="!$(TargetFramework.Contains(';'))"
                 ResourceName="CannotInferTargetFrameworkIdentifierAndVersion"
                 FormatArguments="$([MSBuild]::Escape('$(TargetFramework)'))" />

How can I fix this error?

Reproduction Steps

ditto

Expected behavior

I hope to compile corehost .sln succeed

Actual behavior

I was expecting to compile the corehost .sln, but the result is wrong

Regression?

No response

Known Workarounds

No response

Configuration

C:\Users\Administrator>dotnet --info
.NET SDK:
 Version:   8.0.100-preview.5.23303.2
 Commit:    3fe444af72

运行时环境:
 OS Name:     Windows
 OS Version:  10.0.22621
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\8.0.100-preview.5.23303.2\

.NET workloads installed:
没有要显示的已安装工作负载。

Host:
  Version:      8.0.0-preview.5.23280.8
  Architecture: x64
  Commit:       bc78804f5d

.NET SDKs installed:
  7.0.100 [C:\Program Files\dotnet\sdk]
  7.0.302 [C:\Program Files\dotnet\sdk]
  8.0.100-preview.5.23303.2 [C:\Program Files\dotnet\sdk]

Other information

No response

Author: tangyanzhi
Assignees: -
Labels:

area-Infrastructure-coreclr, untriaged, needs-area-label

Milestone: -

@vcsjones vcsjones removed the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Jun 28, 2023
@hoyosjs
Copy link
Member

hoyosjs commented Jun 29, 2023

Closing in favor of #88172 since it's a tracking issue of CI impact.

@hoyosjs hoyosjs closed this as not planned Won't fix, can't repro, duplicate, stale Jun 29, 2023
@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Jun 29, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Jul 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants