You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to target netnano1.0 in SDK Style project. It works fine when I import NFProjectSystem.CSharp.targets in .nfproj. But when I try to move it to Directory.Build.targets, it failed with
Because the NFProjectSystem.CSharp.targets has imports the Microsoft.CSharp.CurrentVersion.targets and the SDK imports it again.
It also warning when import it in .nfproj. warning MSB4011: 无法再次导入“C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Current\Bin\amd64\Microsoft.Common.targets”。可能已在“C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Current\Bin\amd64\Microsoft.CSharp.CurrentVersion.targets (348,5)”处导入过它。这很可能是生成创作错误。将忽略此后续导入。[C:\Users\qq251\Downloads\GitHub\new\NFApp1\NFApp1\NFApp1.nfproj]
Tool
Visual Studio extension
Description
I am trying to target

netnano1.0
in SDK Style project. It works fine when I importNFProjectSystem.CSharp.targets
in.nfproj
. But when I try to move it toDirectory.Build.targets
, it failed withBecause the
NFProjectSystem.CSharp.targets
has imports theMicrosoft.CSharp.CurrentVersion.targets
and the SDK imports it again.It also warning when import it in
.nfproj
.warning MSB4011: 无法再次导入“C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Current\Bin\amd64\Microsoft.Common.targets”。可能已在“C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Current\Bin\amd64\Microsoft.CSharp.CurrentVersion.targets (348,5)”处导入过它。这很可能是生成创作错误。将忽略此后续导入。[C:\Users\qq251\Downloads\GitHub\new\NFApp1\NFApp1\NFApp1.nfproj]
#1067
How to reproduce
Directory.Build.props
Directory.Build.targets
.nfproj
Project:
NFApp1.zip
Expected behaviour
No response
Screenshots
No response
Aditional context
No response
The text was updated successfully, but these errors were encountered: