NuGet / Home

Repo for NuGet Client issues
Other
1.49k stars 250 forks source link

dotnet restore/Visual Studio conflicting with .esproj + Nx project.json #13512

Open Assura-Mark opened 1 month ago

Assura-Mark commented 1 month ago

NuGet Product Used

dotnet.exe, Visual Studio Package Management UI

Product Version

Visual Studio 17.10.1, dotnet 8.0.300

Worked before?

Visual Studio 17.9.1

Impact

It's more difficult to complete my work

Repro Steps & Context

Steps:

  1. Create a solution containing a .esproj project.
  2. Inside that .esproj project, initialize an Nx Workspace in the root. It might even break if you put just a file called project.json - should be in the same directory as your .esproj.
  3. Try running dotnet restore against the sln containing the .esproj

Context: I'm using an .esproj that contains an Nx project. The Nx project adds a project.json file which NuGet appears to be trying to process now - previously it was ignored.

I've had limited success in the command line by forcing <RestoreProjectStyle>Unknown</RestoreProjectStyle> in the .esproj, but it doesn't appear to be respected by Visual Studio's package management UI.

Verbose Logs

Visual Studio:
NuGet.Commands.RestoreSpecException: Invalid restore input. No target frameworks specified. Input files: C:\Projects\Nx.Demo\src\presentation\Angular.Client\Angular.Client.esproj, C:\Projects\Nx.Demo\src\presentation\Angular.Client\project.json.
   at NuGet.Commands.SpecValidationUtility.ValidateFrameworks(PackageSpec spec, IEnumerable`1 files)
   at NuGet.Commands.SpecValidationUtility.ValidateProjectSpecUAP(PackageSpec spec, IEnumerable`1 files)
   at NuGet.Commands.SpecValidationUtility.ValidateProjectSpec(PackageSpec spec)
   at NuGet.Commands.SpecValidationUtility.ValidateDependencySpec(DependencyGraphSpec spec, HashSet`1 projectsToSkip)
   at NuGet.Commands.DependencyGraphSpecRequestProvider.GetRequestsFromItems(RestoreArgs restoreContext, DependencyGraphSpec dgFile)
   at NuGet.Commands.DependencyGraphSpecRequestProvider.CreateRequests(RestoreArgs restoreContext)
   at NuGet.Commands.RestoreRunner.<CreatePreLoadedRequests>d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at NuGet.Commands.RestoreRunner.<GetRequests>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at NuGet.PackageManagement.DependencyGraphRestoreUtility.<PreviewRestoreProjectsAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at NuGet.PackageManagement.NuGetPackageManager.<PreviewBuildIntegratedProjectsActionsAsync>d__89.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at NuGet.PackageManagement.NuGetPackageManager.<PreviewProjectsInstallPackageAsync>d__75.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at NuGet.PackageManagement.VisualStudio.NuGetProjectManagerService.<>c__DisplayClass22_0.<<GetInstallActionsAsync>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at NuGet.PackageManagement.VisualStudio.NuGetProjectManagerService.<CatchAndRethrowExceptionAsync>d__33`1.MoveNext()
Time Elapsed: 00:00:00.0865436

Dotnet:
Build started 5/06/2024 12:27:53 pm.
     0>Process = "C:\Program Files\dotnet\dotnet.exe"
       MSBuild executable path = "C:\Program Files\dotnet\sdk\8.0.300\MSBuild.dll"
       Command line arguments = "C:\Program Files\dotnet\sdk\8.0.300\MSBuild.dll -maxcpucount -verbosity:m -nologo -tar
       get:Restore -verbosity:d .\NuGetRepro.sln -distributedlogger:Microsoft.DotNet.Tools.MSBuild.MSBuildLogger,C:\Pro
       gram Files\dotnet\sdk\8.0.300\dotnet.dll*Microsoft.DotNet.Tools.MSBuild.MSBuildForwardingLogger,C:\Program Files
       \dotnet\sdk\8.0.300\dotnet.dll"
       Current directory = "C:\Projects\NuGetRepro"
       MSBuild version = "17.10.4+10fbfbf2e"
       Assembly loaded during Evaluation: Microsoft.NET.StringTools, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b
       03f5f7f11d50a3a (location: C:\Program Files\dotnet\sdk\8.0.300\Microsoft.NET.StringTools.dll, MVID: a8215d72-494
       e-46bc-80f3-3ce7f496c99c, AssemblyLoadContext: Default)
       Property 'MSBuildExtensionsPath' with value 'C:\Program Files\dotnet\sdk\8.0.300\' expanded from the environment
       .
       Assembly loaded during Evaluation: System.Threading.Tasks.Parallel, Version=8.0.0.0, Culture=neutral, PublicKeyT
       oken=b03f5f7f11d50a3a (location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.5\System.Threading.Tas
       ks.Parallel.dll, MVID: d3a3bc4d-9e98-4980-af99-a5f6d7d560fb, AssemblyLoadContext: Default)
       Property reassignment: $(_GenerateRestoreGraphProjectEntryInputProperties)="
             ExcludeRestorePackageImports=true;
             _RestoreSolutionFileUsed=true;
             SolutionDir=C:\Projects\NuGetRepro\;
             SolutionName=NuGetRepro;
             SolutionFileName=NuGetRepro.sln;
             SolutionPath=C:\Projects\NuGetRepro\NuGetRepro.sln;
             SolutionExt=.sln;
           " (previous value: "ExcludeRestorePackageImports=true") at C:\Program Files\dotnet\sdk\8.0.300\NuGet.targets
        (97,5)
       Overriding target "Restore" in project "C:\Projects\NuGetRepro\NuGetRepro.sln.metaproj" with target "Restore" fr
       om project "C:\Program Files\dotnet\sdk\8.0.300\NuGet.targets".
       The target "Store" listed in a BeforeTargets attribute at "C:\Program Files\dotnet\sdk\8.0.300\Current\SolutionF
       ile\ImportAfter\Microsoft.NET.Sdk.Solution.targets (33,11)" does not exist in the project, and will be ignored.
       The target "VSTest" listed in a BeforeTargets attribute at "C:\Program Files\dotnet\sdk\8.0.300\Current\Solution
       File\ImportAfter\Microsoft.NET.Sdk.Solution.targets (33,11)" does not exist in the project, and will be ignored.
       The target "_CheckForInvalidConfigurationAndPlatform" listed in a BeforeTargets attribute at "C:\Program Files\d
       otnet\sdk\8.0.300\NuGet.targets (616,11)" does not exist in the project, and will be ignored.
     1>Project "C:\Projects\NuGetRepro\NuGetRepro.sln" on node 1 (Restore target(s)).
     1>Target "ValidateSolutionConfiguration" in file "C:\Projects\NuGetRepro\NuGetRepro.sln.metaproj" from project "C:
       \Projects\NuGetRepro\NuGetRepro.sln" (entry point):
     1>Task "Error" skipped, due to false condition; (('$(CurrentSolutionConfigurationContents)' == '') and ('$(SkipInv
       alidConfigurations)' != 'true')) was evaluated as (('<SolutionConfiguration>
         <ProjectConfiguration Project="{ADA2A210-A17C-4914-AECE-DF79D57BA65E}" AbsolutePath="C:\Projects\NuGetRepro\Nx
       App\NxApp.esproj" BuildProjectInSolution="True">Debug|AnyCPU</ProjectConfiguration>
       </SolutionConfiguration>' == '') and ('' != 'true')).
       Task "Warning" skipped, due to false condition; (('$(CurrentSolutionConfigurationContents)' == '') and ('$(SkipI
       nvalidConfigurations)' == 'true')) was evaluated as (('<SolutionConfiguration>
         <ProjectConfiguration Project="{ADA2A210-A17C-4914-AECE-DF79D57BA65E}" AbsolutePath="C:\Projects\NuGetRepro\Nx
       App\NxApp.esproj" BuildProjectInSolution="True">Debug|AnyCPU</ProjectConfiguration>
       </SolutionConfiguration>' == '') and ('' == 'true')).
       Using "Message" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToke
       n=b03f5f7f11d50a3a".
       Task "Message"
         Building solution configuration "Debug|Any CPU".
       Done executing task "Message".
     1>Done building target "ValidateSolutionConfiguration" in project "NuGetRepro.sln".
     1>Target "ValidateToolsVersions" in file "C:\Projects\NuGetRepro\NuGetRepro.sln.metaproj" from project "C:\Project
       s\NuGetRepro\NuGetRepro.sln" (entry point):
       Task "Error" skipped, due to false condition; ('$(MSBuildToolsVersion)' == '2.0' and ('$(ProjectToolsVersion)' !
       = '2.0' and '$(ProjectToolsVersion)' != '')) was evaluated as ('Current' == '2.0' and ('' != '2.0' and '' != '')
       ).
     1>Done building target "ValidateToolsVersions" in project "NuGetRepro.sln".
     1>Target "ValidateProjects" in file "C:\Projects\NuGetRepro\NuGetRepro.sln.metaproj" from project "C:\Projects\NuG
       etRepro\NuGetRepro.sln" (entry point):
     1>Done building target "ValidateProjects" in project "NuGetRepro.sln".
     1>Target "_LoadRestoreGraphEntryPoints" in file "C:\Program Files\dotnet\sdk\8.0.300\NuGet.targets" from project "
       C:\Projects\NuGetRepro\NuGetRepro.sln" (target "_FilterRestoreGraphProjectInputItems" depends on it):
       Assembly loaded during TaskRun: NuGet.Build.Tasks, Version=6.10.0.97, Culture=neutral, PublicKeyToken=31bf3856ad
       364e35 (location: C:\Program Files\dotnet\sdk\8.0.300\NuGet.Build.Tasks.dll, MVID: 624f4ab8-c79e-4c70-a7c0-c59f0
       8143029, AssemblyLoadContext: MSBuild plugin C:\Program Files\dotnet\sdk\8.0.300\NuGet.Build.Tasks.dll)
       Assembly loaded during TaskRun: System.Reflection.Metadata, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03
       f5f7f11d50a3a (location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.5\System.Reflection.Metadata.d
       ll, MVID: 1c5f107b-8c1e-403b-b61c-f0fd87ed879a, AssemblyLoadContext: Default)
       Assembly loaded during TaskRun: NuGet.Common, Version=6.10.0.97, Culture=neutral, PublicKeyToken=31bf3856ad364e3
       5 (location: C:\Program Files\dotnet\sdk\8.0.300\NuGet.Common.dll, MVID: be324f81-ded8-4e6c-b54c-98fb2a8317e3, A
       ssemblyLoadContext: MSBuild plugin C:\Program Files\dotnet\sdk\8.0.300\NuGet.Build.Tasks.dll)
       Assembly loaded during TaskRun: NuGet.Commands, Version=6.10.0.97, Culture=neutral, PublicKeyToken=31bf3856ad364
       e35 (location: C:\Program Files\dotnet\sdk\8.0.300\NuGet.Commands.dll, MVID: 44908f5c-2a4c-439d-9ed2-21e095991cf
       d, AssemblyLoadContext: MSBuild plugin C:\Program Files\dotnet\sdk\8.0.300\NuGet.Build.Tasks.dll)
       Assembly loaded during TaskRun: NuGet.ProjectModel, Version=6.10.0.97, Culture=neutral, PublicKeyToken=31bf3856a
       d364e35 (location: C:\Program Files\dotnet\sdk\8.0.300\NuGet.ProjectModel.dll, MVID: 1a7afad2-66d2-4b93-94d2-4af
       6749164a6, AssemblyLoadContext: MSBuild plugin C:\Program Files\dotnet\sdk\8.0.300\NuGet.Build.Tasks.dll)
       Using "GetRestoreSolutionProjectsTask" task from assembly "C:\Program Files\dotnet\sdk\8.0.300\NuGet.Build.Tasks
       .dll".
       Task "GetRestoreSolutionProjectsTask"
       Done executing task "GetRestoreSolutionProjectsTask".
     1>Done building target "_LoadRestoreGraphEntryPoints" in project "NuGetRepro.sln".
     1>Target "_FilterRestoreGraphProjectInputItems" in file "C:\Program Files\dotnet\sdk\8.0.300\NuGet.targets" from p
       roject "C:\Projects\NuGetRepro\NuGetRepro.sln" (target "_GenerateRestoreGraph" depends on it):
       Using "RemoveDuplicates" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, Publ
       icKeyToken=b03f5f7f11d50a3a".
       Task "RemoveDuplicates"
       Done executing task "RemoveDuplicates".
       Using "MSBuild" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToke
       n=b03f5f7f11d50a3a".
       Task "MSBuild"
         Global Properties:
           ExcludeRestorePackageImports=true
           _RestoreSolutionFileUsed=true
           SolutionDir=C:\Projects\NuGetRepro\
           SolutionName=NuGetRepro
           SolutionFileName=NuGetRepro.sln
           SolutionPath=C:\Projects\NuGetRepro\NuGetRepro.sln
           SolutionExt=.sln
         Additional Properties for project "C:\Projects\NuGetRepro\NxApp\NxApp.esproj":
           Configuration=Debug
           Platform=AnyCPU
     0>The "DefaultSdkResolver" resolver attempted to resolve the SDK "Microsoft.VisualStudio.JavaScript.Sdk/1.0.784122
       ".
       Warnings: null
       Errors: MSB4276: The default SDK resolver failed to resolve SDK "Microsoft.VisualStudio.JavaScript.Sdk" because
       directory "C:\Program Files\dotnet\sdk\8.0.300\Sdks\Microsoft.VisualStudio.JavaScript.Sdk\Sdk" did not exist.
       Assembly loaded during Evaluation: Microsoft.Build.NuGetSdkResolver, Version=6.10.0.97, Culture=neutral, PublicK
       eyToken=31bf3856ad364e35 (location: C:\Program Files\dotnet\sdk\8.0.300\Microsoft.Build.NuGetSdkResolver.dll, MV
       ID: 892518ee-ce10-4c18-ad79-a096196c3fcf, AssemblyLoadContext: MSBuild plugin C:\Program Files\dotnet\sdk\8.0.30
       0\Microsoft.Build.NuGetSdkResolver.dll)
       Assembly loaded during Evaluation: Microsoft.NET.Sdk.WorkloadMSBuildSdkResolver, Version=8.0.300.0, Culture=neut
       ral, PublicKeyToken=31bf3856ad364e35 (location: C:\Program Files\dotnet\sdk\8.0.300\Microsoft.NET.Sdk.WorkloadMS
       BuildSdkResolver.dll, MVID: f5fa4dec-820a-4cf1-a594-dc92637eb401, AssemblyLoadContext: MSBuild plugin C:\Program
        Files\dotnet\sdk\8.0.300\Microsoft.NET.Sdk.WorkloadMSBuildSdkResolver.dll)
       Assembly loaded during Evaluation: Microsoft.DotNet.Cli.Utils, Version=8.0.300.0, Culture=neutral, PublicKeyToke
       n=adb9793829ddae60 (location: C:\Program Files\dotnet\sdk\8.0.300\Microsoft.DotNet.Cli.Utils.dll, MVID: 4b77f33b
       -55cc-4dbb-9c0f-92d798a6d6f2, AssemblyLoadContext: MSBuild plugin C:\Program Files\dotnet\sdk\8.0.300\Microsoft.
       NET.Sdk.WorkloadMSBuildSdkResolver.dll)
       Assembly loaded during Evaluation: Microsoft.NET.Sdk.WorkloadManifestReader, Version=8.0.300.0, Culture=neutral,
        PublicKeyToken=adb9793829ddae60 (location: C:\Program Files\dotnet\sdk\8.0.300\Microsoft.NET.Sdk.WorkloadManife
       stReader.dll, MVID: ac12131e-8cc8-4dfb-a978-5f85ad026ece, AssemblyLoadContext: MSBuild plugin C:\Program Files\d
       otnet\sdk\8.0.300\Microsoft.NET.Sdk.WorkloadMSBuildSdkResolver.dll)
       Assembly loaded during Evaluation: Microsoft.Deployment.DotNet.Releases, Version=2.0.0.0, Culture=neutral, Publi
       cKeyToken=31bf3856ad364e35 (location: C:\Program Files\dotnet\sdk\8.0.300\Microsoft.Deployment.DotNet.Releases.d
       ll, MVID: eb340e0e-b895-41fa-8fc4-c04faee03b3b, AssemblyLoadContext: MSBuild plugin C:\Program Files\dotnet\sdk\
       8.0.300\Microsoft.NET.Sdk.WorkloadMSBuildSdkResolver.dll)
       The "Microsoft.DotNet.MSBuildWorkloadSdkResolver" resolver attempted to resolve the SDK "Microsoft.VisualStudio.
       JavaScript.Sdk/1.0.784122".
       Warnings: null
       Errors: SDK resolver "Microsoft.DotNet.MSBuildWorkloadSdkResolver" returned null.
       Assembly loaded during Evaluation: NuGet.Common, Version=6.10.0.97, Culture=neutral, PublicKeyToken=31bf3856ad36
       4e35 (location: C:\Program Files\dotnet\sdk\8.0.300\NuGet.Common.dll, MVID: be324f81-ded8-4e6c-b54c-98fb2a8317e3
       , AssemblyLoadContext: MSBuild plugin C:\Program Files\dotnet\sdk\8.0.300\Microsoft.Build.NuGetSdkResolver.dll)
       Assembly loaded during Evaluation: NuGet.Versioning, Version=6.10.0.97, Culture=neutral, PublicKeyToken=31bf3856
       ad364e35 (location: C:\Program Files\dotnet\sdk\8.0.300\NuGet.Versioning.dll, MVID: 6c33ba60-7e6e-44e4-9bb0-f837
       223833cb, AssemblyLoadContext: MSBuild plugin C:\Program Files\dotnet\sdk\8.0.300\Microsoft.Build.NuGetSdkResolv
       er.dll)
       Assembly loaded during Evaluation: NuGet.Commands, Version=6.10.0.97, Culture=neutral, PublicKeyToken=31bf3856ad
       364e35 (location: C:\Program Files\dotnet\sdk\8.0.300\NuGet.Commands.dll, MVID: 44908f5c-2a4c-439d-9ed2-21e09599
       1cfd, AssemblyLoadContext: MSBuild plugin C:\Program Files\dotnet\sdk\8.0.300\Microsoft.Build.NuGetSdkResolver.d
       ll)
       Assembly loaded during Evaluation: NuGet.ProjectModel, Version=6.10.0.97, Culture=neutral, PublicKeyToken=31bf38
       56ad364e35 (location: C:\Program Files\dotnet\sdk\8.0.300\NuGet.ProjectModel.dll, MVID: 1a7afad2-66d2-4b93-94d2-
       4af6749164a6, AssemblyLoadContext: MSBuild plugin C:\Program Files\dotnet\sdk\8.0.300\Microsoft.Build.NuGetSdkRe
       solver.dll)
       Assembly loaded during Evaluation: NuGet.LibraryModel, Version=6.10.0.97, Culture=neutral, PublicKeyToken=31bf38
       56ad364e35 (location: C:\Program Files\dotnet\sdk\8.0.300\NuGet.LibraryModel.dll, MVID: dca91d3d-e887-45d7-adbe-
       fb21a6d2e8de, AssemblyLoadContext: MSBuild plugin C:\Program Files\dotnet\sdk\8.0.300\Microsoft.Build.NuGetSdkRe
       solver.dll)
       Assembly loaded during Evaluation: NuGet.Packaging, Version=6.10.0.97, Culture=neutral, PublicKeyToken=31bf3856a
       d364e35 (location: C:\Program Files\dotnet\sdk\8.0.300\NuGet.Packaging.dll, MVID: a5872115-ad31-41c6-8ee1-d250f9
       a89421, AssemblyLoadContext: MSBuild plugin C:\Program Files\dotnet\sdk\8.0.300\Microsoft.Build.NuGetSdkResolver
       .dll)
       Assembly loaded during Evaluation: NuGet.Configuration, Version=6.10.0.97, Culture=neutral, PublicKeyToken=31bf3
       856ad364e35 (location: C:\Program Files\dotnet\sdk\8.0.300\NuGet.Configuration.dll, MVID: 866e4468-d3e9-47ca-919
       0-26d4940d8abc, AssemblyLoadContext: MSBuild plugin C:\Program Files\dotnet\sdk\8.0.300\Microsoft.Build.NuGetSdk
       Resolver.dll)
       Assembly loaded during Evaluation: System.IO.FileSystem, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f
       7f11d50a3a (location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.5\System.IO.FileSystem.dll, MVID:
        91f7ab2c-9d14-4bdc-b03e-63aebb2ceaa9, AssemblyLoadContext: Default)
       The SDK "Microsoft.VisualStudio.JavaScript.Sdk/1.0.784122" was successfully resolved by the "NuGetSdkResolver" r
       esolver to location "C:\Users\assura-mark\.nuget\packages\microsoft.visualstudio.javascript.sdk\1.0.784122\Sdk"
       and version "1.0.784122".
       Property 'MSBuildExtensionsPath' with value 'C:\Program Files\dotnet\sdk\8.0.300\' expanded from the environment
       .
       Property reassignment: $(MSBuildProjectExtensionsPath)="C:\Projects\NuGetRepro\NxApp\obj\" (previous value: "obj
       \") at C:\Program Files\dotnet\sdk\8.0.300\Current\Microsoft.Common.props (60,5)
       The "Configuration" property is a global property, and cannot be modified.
       The "Platform" property is a global property, and cannot be modified.
       The "Configuration" property is a global property, and cannot be modified.
       The "Platform" property is a global property, and cannot be modified.
       Property 'OS' with value 'Windows_NT' expanded from the environment.
       Property reassignment: $(DefaultItemExcludes)=";obj/**;**/*.user" (previous value: ";obj/**") at C:\Users\mark.h
       ermon\.nuget\packages\microsoft.visualstudio.javascript.sdk\1.0.784122\Sdk\Sdk.targets (84,5)
       Property reassignment: $(DefaultItemExcludes)=";obj/**;**/*.user;**/*.*proj" (previous value: ";obj/**;**/*.user
       ") at C:\Users\assura-mark\.nuget\packages\microsoft.visualstudio.javascript.sdk\1.0.784122\Sdk\Sdk.targets (85,
       5)
       Property reassignment: $(DefaultItemExcludes)=";obj/**;**/*.user;**/*.*proj;**/*.sln" (previous value: ";obj/**;
       **/*.user;**/*.*proj") at C:\Users\assura-mark\.nuget\packages\microsoft.visualstudio.javascript.sdk\1.0.784122\
       Sdk\Sdk.targets (86,5)
       Property reassignment: $(DefaultItemExcludes)=";obj/**;**/*.user;**/*.*proj;**/*.sln;**/*.vssscc" (previous valu
       e: ";obj/**;**/*.user;**/*.*proj;**/*.sln") at C:\Users\assura-mark\.nuget\packages\microsoft.visualstudio.javas
       cript.sdk\1.0.784122\Sdk\Sdk.targets (87,5)
       Property reassignment: $(DefaultExcludesInProjectFolder)=";**/.*/**;**/node_modules/**" (previous value: ";**/.*
       /**") at C:\Users\assura-mark\.nuget\packages\microsoft.visualstudio.javascript.sdk\1.0.784122\Sdk\Sdk.targets (
       95,5)
       The "Platform" property is a global property, and cannot be modified.
       The "Configuration" property is a global property, and cannot be modified.
       Property reassignment: $(_DebugSymbolsProduced)="true" (previous value: "false") at C:\Program Files\dotnet\sdk\
       8.0.300\Microsoft.Common.CurrentVersion.targets (175,5)
       Property reassignment: $(_DocumentationFileProduced)="false" (previous value: "true") at C:\Program Files\dotnet
       \sdk\8.0.300\Microsoft.Common.CurrentVersion.targets (185,5)
       The "SolutionName" property is a global property, and cannot be modified.
       The "SolutionFileName" property is a global property, and cannot be modified.
       The "SolutionPath" property is a global property, and cannot be modified.
       The "SolutionDir" property is a global property, and cannot be modified.
       The "SolutionExt" property is a global property, and cannot be modified.
       Property reassignment: $(AutoUnifyAssemblyReferences)="false" (previous value: "true") at C:\Program Files\dotne
       t\sdk\8.0.300\Microsoft.Common.CurrentVersion.targets (369,5)
       Property reassignment: $(MSBuildCopyMarkerName)="NxApp.esproj.Up2Date" (previous value: "NxApp.esproj") at C:\Pr
       ogram Files\dotnet\sdk\8.0.300\Microsoft.Common.CurrentVersion.targets (393,5)
       Property reassignment: $(ProcessorArchitecture)="msil" (previous value: "") at C:\Program Files\dotnet\sdk\8.0.3
       00\Microsoft.Common.CurrentVersion.targets (536,5)
       Property reassignment: $(DelaySign)="" (previous value: "false") at C:\Program Files\dotnet\sdk\8.0.300\Microsof
       t.Common.CurrentVersion.targets (575,5)
       Property reassignment: $(AssemblySearchPaths)="{CandidateAssemblyFiles};" (previous value: "{CandidateAssemblyFi
       les}") at C:\Program Files\dotnet\sdk\8.0.300\Microsoft.Common.CurrentVersion.targets (644,5)
       Property reassignment: $(AssemblySearchPaths)="{CandidateAssemblyFiles};;{HintPathFromItem}" (previous value: "{
       CandidateAssemblyFiles};") at C:\Program Files\dotnet\sdk\8.0.300\Microsoft.Common.CurrentVersion.targets (645,5
       )
       Property reassignment: $(AssemblySearchPaths)="{CandidateAssemblyFiles};;{HintPathFromItem};{TargetFrameworkDire
       ctory}" (previous value: "{CandidateAssemblyFiles};;{HintPathFromItem}") at C:\Program Files\dotnet\sdk\8.0.300\
       Microsoft.Common.CurrentVersion.targets (646,5)
       Property reassignment: $(AssemblySearchPaths)="{CandidateAssemblyFiles};;{HintPathFromItem};{TargetFrameworkDire
       ctory};" (previous value: "{CandidateAssemblyFiles};;{HintPathFromItem};{TargetFrameworkDirectory}") at C:\Progr
       am Files\dotnet\sdk\8.0.300\Microsoft.Common.CurrentVersion.targets (647,5)
       Property reassignment: $(AssemblySearchPaths)="{CandidateAssemblyFiles};;{HintPathFromItem};{TargetFrameworkDire
       ctory};;{Registry:Software\Microsoft\,v4.7.2,AssemblyFoldersEx}" (previous value: "{CandidateAssemblyFiles};;{Hi
       ntPathFromItem};{TargetFrameworkDirectory};") at C:\Program Files\dotnet\sdk\8.0.300\Microsoft.Common.CurrentVer
       sion.targets (648,5)
       Property reassignment: $(AssemblySearchPaths)="{CandidateAssemblyFiles};;{HintPathFromItem};{TargetFrameworkDire
       ctory};;{Registry:Software\Microsoft\,v4.7.2,AssemblyFoldersEx};{AssemblyFolders}" (previous value: "{CandidateA
       ssemblyFiles};;{HintPathFromItem};{TargetFrameworkDirectory};;{Registry:Software\Microsoft\,v4.7.2,AssemblyFolde
       rsEx}") at C:\Program Files\dotnet\sdk\8.0.300\Microsoft.Common.CurrentVersion.targets (649,5)
       Property reassignment: $(AssemblySearchPaths)="{CandidateAssemblyFiles};;{HintPathFromItem};{TargetFrameworkDire
       ctory};;{Registry:Software\Microsoft\,v4.7.2,AssemblyFoldersEx};{AssemblyFolders};{GAC}" (previous value: "{Cand
       idateAssemblyFiles};;{HintPathFromItem};{TargetFrameworkDirectory};;{Registry:Software\Microsoft\,v4.7.2,Assembl
       yFoldersEx};{AssemblyFolders}") at C:\Program Files\dotnet\sdk\8.0.300\Microsoft.Common.CurrentVersion.targets (
       650,5)
       Property reassignment: $(AssemblySearchPaths)="{CandidateAssemblyFiles};;{HintPathFromItem};{TargetFrameworkDire
       ctory};;{Registry:Software\Microsoft\,v4.7.2,AssemblyFoldersEx};{AssemblyFolders};{GAC};{RawFileName}" (previous
        value: "{CandidateAssemblyFiles};;{HintPathFromItem};{TargetFrameworkDirectory};;{Registry:Software\Microsoft\,
       v4.7.2,AssemblyFoldersEx};{AssemblyFolders};{GAC}") at C:\Program Files\dotnet\sdk\8.0.300\Microsoft.Common.Curr
       entVersion.targets (651,5)
       Property reassignment: $(AssemblySearchPaths)="{CandidateAssemblyFiles};;{HintPathFromItem};{TargetFrameworkDire
       ctory};;{Registry:Software\Microsoft\,v4.7.2,AssemblyFoldersEx};{AssemblyFolders};{GAC};{RawFileName};C:\Project
       s\NuGetRepro\NxApp\" (previous value: "{CandidateAssemblyFiles};;{HintPathFromItem};{TargetFrameworkDirectory};;
       {Registry:Software\Microsoft\,v4.7.2,AssemblyFoldersEx};{AssemblyFolders};{GAC};{RawFileName}") at C:\Program Fi
       les\dotnet\sdk\8.0.300\Microsoft.Common.CurrentVersion.targets (652,5)
       Property 'LOCALAPPDATA' with value 'C:\Users\assura-mark\AppData\Local' expanded from the environment.
       Property reassignment: $(_SGenGenerateSerializationAssembliesConfig)="Auto" (previous value: "") at C:\Program F
       iles\dotnet\sdk\8.0.300\Microsoft.Common.CurrentVersion.targets (3880,5)
       Property reassignment: $(_SGenGenerateSerializationAssembliesConfig)="Off" (previous value: "Auto") at C:\Progra
       m Files\dotnet\sdk\8.0.300\Microsoft.Common.CurrentVersion.targets (3881,5)
       Property reassignment: $(_TargetsThatPrepareProjectReferences)="
             AssignProjectConfiguration;
             _SplitProjectReferencesByFileExistence
           " (previous value: "_SplitProjectReferencesByFileExistence") at C:\Program Files\dotnet\sdk\8.0.300\Microsof
       t.Common.CurrentVersion.targets (5048,5)
       Property 'MSBuildExtensionsPath32' with value 'C:\Program Files\dotnet\sdk\8.0.300' expanded from the environmen
       t.
       The "_RestoreSolutionFileUsed" property is a global property, and cannot be modified.
       Property reassignment: $(_GenerateRestoreGraphProjectEntryInputProperties)="
             ExcludeRestorePackageImports=true;
             _RestoreSolutionFileUsed=true;
             SolutionDir=C:\Projects\NuGetRepro\;
             SolutionName=NuGetRepro;
             SolutionFileName=NuGetRepro.sln;
             SolutionPath=C:\Projects\NuGetRepro\NuGetRepro.sln;
             SolutionExt=.sln;
           " (previous value: "ExcludeRestorePackageImports=true") at C:\Program Files\dotnet\sdk\8.0.300\NuGet.targets
        (97,5)
       Overriding target "PrepareForBuild" in project "C:\Program Files\dotnet\sdk\8.0.300\Microsoft.Common.CurrentVers
       ion.targets" with target "PrepareForBuild" from project "C:\Users\assura-mark\.nuget\packages\microsoft.visualst
       udio.javascript.sdk\1.0.784122\Sdk\Sdk.targets".
       Overriding target "ResolveAssemblyReferences" in project "C:\Program Files\dotnet\sdk\8.0.300\Microsoft.Common.C
       urrentVersion.targets" with target "ResolveAssemblyReferences" from project "C:\Users\assura-mark\.nuget\package
       s\microsoft.visualstudio.javascript.sdk\1.0.784122\Sdk\Sdk.targets".
       Overriding target "GetReferenceAssemblyPaths" in project "C:\Program Files\dotnet\sdk\8.0.300\Microsoft.Common.C
       urrentVersion.targets" with target "GetReferenceAssemblyPaths" from project "C:\Users\assura-mark\.nuget\package
       s\microsoft.visualstudio.javascript.sdk\1.0.784122\Sdk\Sdk.targets".
       Overriding target "GetFrameworkPaths" in project "C:\Program Files\dotnet\sdk\8.0.300\Microsoft.Common.CurrentVe
       rsion.targets" with target "GetFrameworkPaths" from project "C:\Users\assura-mark\.nuget\packages\microsoft.visu
       alstudio.javascript.sdk\1.0.784122\Sdk\Sdk.targets".
     1>Project "C:\Projects\NuGetRepro\NuGetRepro.sln" (1) is building "C:\Projects\NuGetRepro\NxApp\NxApp.esproj" (2)
       on node 1 (_IsProjectRestoreSupported target(s)).
     2>Target "_IsProjectRestoreSupported" in file "C:\Program Files\dotnet\sdk\8.0.300\NuGet.targets" from project "C:
       \Projects\NuGetRepro\NxApp\NxApp.esproj" (entry point):
     2>Done building target "_IsProjectRestoreSupported" in project "NxApp.esproj".
     2>Done Building Project "C:\Projects\NuGetRepro\NxApp\NxApp.esproj" (_IsProjectRestoreSupported target(s)).
     1>Done executing task "MSBuild".
       Task "MSBuild" skipped, due to false condition; ( '$(RestoreUseSkipNonexistentTargets)' != 'true' ) was evaluate
       d as ( 'true' != 'true' ).
       Using "WarnForInvalidProjectsTask" task from assembly "C:\Program Files\dotnet\sdk\8.0.300\NuGet.Build.Tasks.dll
       ".
       Task "WarnForInvalidProjectsTask"
       Done executing task "WarnForInvalidProjectsTask".
     1>Done building target "_FilterRestoreGraphProjectInputItems" in project "NuGetRepro.sln".
       Target "_FilterRestoreGraphProjectInputItems" skipped. Previously built successfully.
     1>Target "_GetAllRestoreProjectPathItems" in file "C:\Program Files\dotnet\sdk\8.0.300\NuGet.targets" from project
        "C:\Projects\NuGetRepro\NuGetRepro.sln" (target "_GenerateRestoreGraph" depends on it):
       Using "NuGetMessageTask" task from assembly "C:\Program Files\dotnet\sdk\8.0.300\NuGet.Build.Tasks.dll".
       Task "NuGetMessageTask"
         Determining projects to restore...
       Done executing task "NuGetMessageTask".
       Task "MSBuild"
         Global Properties:
           ExcludeRestorePackageImports=true
           _RestoreSolutionFileUsed=true
           SolutionDir=C:\Projects\NuGetRepro\
           SolutionName=NuGetRepro
           SolutionFileName=NuGetRepro.sln
           SolutionPath=C:\Projects\NuGetRepro\NuGetRepro.sln
           SolutionExt=.sln
         Additional Properties for project "C:\Projects\NuGetRepro\NxApp\NxApp.esproj":
           Configuration=Debug
           Platform=AnyCPU
     1>Project "C:\Projects\NuGetRepro\NuGetRepro.sln" (1) is building "C:\Projects\NuGetRepro\NxApp\NxApp.esproj" (2:2
       ) on node 1 (_GenerateRestoreProjectPathWalk target(s)).
   2:2>Target "_GenerateRestoreProjectPathItemsAllFrameworks" skipped, due to false condition; ( '$(TargetFrameworks)'
       != '' ) was evaluated as ( '' != '' ).
   2:2>Target "_GenerateRestoreProjectPathItemsPerFramework" in file "C:\Program Files\dotnet\sdk\8.0.300\NuGet.targets
       " from project "C:\Projects\NuGetRepro\NxApp\NxApp.esproj" (target "_GenerateRestoreProjectPathItemsCurrentProje
       ct" depends on it):
       Using "ConvertToAbsolutePath" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral,
        PublicKeyToken=b03f5f7f11d50a3a".
       Task "ConvertToAbsolutePath"
       Done executing task "ConvertToAbsolutePath".
   2:2>Done building target "_GenerateRestoreProjectPathItemsPerFramework" in project "NxApp.esproj".
   2:2>Target "_GenerateRestoreProjectPathItemsCurrentProject" in file "C:\Program Files\dotnet\sdk\8.0.300\NuGet.targe
       ts" from project "C:\Projects\NuGetRepro\NxApp\NxApp.esproj" (target "_GenerateRestoreProjectPathItems" depends
       on it):
   2:2>Done building target "_GenerateRestoreProjectPathItemsCurrentProject" in project "NxApp.esproj".
   2:2>Target "_GenerateRestoreProjectPathItems" in file "C:\Program Files\dotnet\sdk\8.0.300\NuGet.targets" from proje
       ct "C:\Projects\NuGetRepro\NxApp\NxApp.esproj" (target "_GenerateRestoreProjectPathWalk" depends on it):
       Using "RemoveDuplicates" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, Publ
       icKeyToken=b03f5f7f11d50a3a".
       Task "RemoveDuplicates"
       Done executing task "RemoveDuplicates".
   2:2>Done building target "_GenerateRestoreProjectPathItems" in project "NxApp.esproj".
   2:2>Target "_GenerateRestoreProjectPathWalk" in file "C:\Program Files\dotnet\sdk\8.0.300\NuGet.targets" from projec
       t "C:\Projects\NuGetRepro\NxApp\NxApp.esproj" (entry point):
       Using "MSBuild" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToke
       n=b03f5f7f11d50a3a".
       Task "MSBuild"
       Done executing task "MSBuild".
       Task "MSBuild" skipped, due to false condition; ( '$(RestoreUseSkipNonexistentTargets)' != 'true' ) was evaluate
       d as ( 'true' != 'true' ).
       Task "RemoveDuplicates"
       Done executing task "RemoveDuplicates".
   2:2>Done building target "_GenerateRestoreProjectPathWalk" in project "NxApp.esproj".
   2:2>Done Building Project "C:\Projects\NuGetRepro\NxApp\NxApp.esproj" (_GenerateRestoreProjectPathWalk target(s)).
     1>Done executing task "MSBuild".
       Task "MSBuild" skipped, due to false condition; ( '$(RestoreUseSkipNonexistentTargets)' != 'true' ) was evaluate
       d as ( 'true' != 'true' ).
       Task "RemoveDuplicates"
       Done executing task "RemoveDuplicates".
       Task "MSBuild"
         Global Properties:
           ExcludeRestorePackageImports=true
           _RestoreSolutionFileUsed=true
           SolutionDir=C:\Projects\NuGetRepro\
           SolutionName=NuGetRepro
           SolutionFileName=NuGetRepro.sln
           SolutionPath=C:\Projects\NuGetRepro\NuGetRepro.sln
           SolutionExt=.sln
         Additional Properties for project "C:\Projects\NuGetRepro\NxApp\NxApp.esproj":
           Configuration=Debug
           Platform=AnyCPU
     1>Project "C:\Projects\NuGetRepro\NuGetRepro.sln" (1) is building "C:\Projects\NuGetRepro\NxApp\NxApp.esproj" (2:3
       ) on node 1 (_IsProjectRestoreSupported target(s)).
   2:3>Target "_IsProjectRestoreSupported" skipped. Previously built successfully.
   2:3>Done Building Project "C:\Projects\NuGetRepro\NxApp\NxApp.esproj" (_IsProjectRestoreSupported target(s)).
     1>Done executing task "MSBuild".
       Task "MSBuild" skipped, due to false condition; ( '$(RestoreUseSkipNonexistentTargets)' != 'true' ) was evaluate
       d as ( 'true' != 'true' ).
     1>Done building target "_GetAllRestoreProjectPathItems" in project "NuGetRepro.sln".
     1>Target "_GenerateRestoreGraph" in file "C:\Program Files\dotnet\sdk\8.0.300\NuGet.targets" from project "C:\Proj
       ects\NuGetRepro\NuGetRepro.sln" (target "Restore" depends on it):
       Task "Message"
         Generating dg file
       Done executing task "Message".
       Task "Message"
         C:\Projects\NuGetRepro\NxApp\NxApp.esproj
       Done executing task "Message".
       Task "MSBuild"
         Global Properties:
           ExcludeRestorePackageImports=true
           _RestoreSolutionFileUsed=true
           SolutionDir=C:\Projects\NuGetRepro\
           SolutionName=NuGetRepro
           SolutionFileName=NuGetRepro.sln
           SolutionPath=C:\Projects\NuGetRepro\NuGetRepro.sln
           SolutionExt=.sln
         Additional Properties for project "C:\Projects\NuGetRepro\NxApp\NxApp.esproj":
           Configuration=Debug
           Platform=AnyCPU
     1>Project "C:\Projects\NuGetRepro\NuGetRepro.sln" (1) is building "C:\Projects\NuGetRepro\NxApp\NxApp.esproj" (2:4
       ) on node 1 (_GenerateRestoreGraphProjectEntry target(s)).
   2:4>Target "_GetProjectJsonPath" in file "C:\Program Files\dotnet\sdk\8.0.300\NuGet.targets" from project "C:\Projec
       ts\NuGetRepro\NxApp\NxApp.esproj" (target "_GetRestoreProjectStyle" depends on it):
   2:4>Using "GetRestoreProjectJsonPathTask" task from assembly "C:\Program Files\dotnet\sdk\8.0.300\NuGet.Build.Tasks.
       dll".
       Task "GetRestoreProjectJsonPathTask"
       Done executing task "GetRestoreProjectJsonPathTask".
   2:4>Done building target "_GetProjectJsonPath" in project "NxApp.esproj".
   2:4>Target "CollectPackageReferences" in file "C:\Program Files\dotnet\sdk\8.0.300\NuGet.targets" from project "C:\P
       rojects\NuGetRepro\NxApp\NxApp.esproj" (target "_GetRestoreProjectStyle" depends on it):
       Using "CheckForDuplicateNuGetItemsTask" task from assembly "C:\Program Files\dotnet\sdk\8.0.300\NuGet.Build.Task
       s.dll".
       Task "CheckForDuplicateNuGetItemsTask"
       Done executing task "CheckForDuplicateNuGetItemsTask".
   2:4>Done building target "CollectPackageReferences" in project "NxApp.esproj".
   2:4>Target "_GetRestoreProjectStyle" in file "C:\Program Files\dotnet\sdk\8.0.300\NuGet.targets" from project "C:\Pr
       ojects\NuGetRepro\NxApp\NxApp.esproj" (target "_GenerateRestoreSpecs" depends on it):
       Using "GetRestoreProjectStyleTask" task from assembly "C:\Program Files\dotnet\sdk\8.0.300\NuGet.Build.Tasks.dll
       ".
       Task "GetRestoreProjectStyleTask"
       Done executing task "GetRestoreProjectStyleTask".
   2:4>Done building target "_GetRestoreProjectStyle" in project "NxApp.esproj".
   2:4>Target "_GenerateRestoreSpecs" in file "C:\Program Files\dotnet\sdk\8.0.300\NuGet.targets" from project "C:\Proj
       ects\NuGetRepro\NxApp\NxApp.esproj" (target "_GenerateRestoreGraphProjectEntry" depends on it):
       Using "Message" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToke
       n=b03f5f7f11d50a3a".
       Task "Message"
         Restore entry point C:\Projects\NuGetRepro\NxApp\NxApp.esproj
       Done executing task "Message".
   2:4>Done building target "_GenerateRestoreSpecs" in project "NxApp.esproj".
   2:4>Target "_GetRestoreSettingsOverrides" in file "C:\Program Files\dotnet\sdk\8.0.300\NuGet.targets" from project "
       C:\Projects\NuGetRepro\NxApp\NxApp.esproj" (target "_GetRestoreSettings" depends on it):
       Task "MSBuild" skipped, due to false condition; ( '$(RestorePackagesPath)' != '' ) was evaluated as ( '' != '' )
       .
       Task "MSBuild" skipped, due to false condition; ( '$(RestoreRepositoryPathOverride)' != '' ) was evaluated as (
       '' != '' ).
       Task "MSBuild" skipped, due to false condition; ( '$(RestoreSources)' != '' ) was evaluated as ( '' != '' ).
       Task "MSBuild" skipped, due to false condition; ( '$(RestoreFallbackFolders)' != '' ) was evaluated as ( '' != '
       ' ).
   2:4>Done building target "_GetRestoreSettingsOverrides" in project "NxApp.esproj".
       Target "_GetRestoreSettingsCurrentProject" skipped, due to false condition; ( '$(TargetFrameworks)' == '' AND '$
       (PackageReferenceCompatibleProjectStyle)' == 'true' ) was evaluated as ( '' == '' AND 'False' == 'true' ).
       Target "_GetRestoreSettingsAllFrameworks" skipped, due to false condition; ( '$(TargetFrameworks)' != '' AND '$(
       PackageReferenceCompatibleProjectStyle)' == 'true' ) was evaluated as ( '' != '' AND 'False' == 'true' ).
   2:4>Target "_GetRestoreSettings" in file "C:\Program Files\dotnet\sdk\8.0.300\NuGet.targets" from project "C:\Projec
       ts\NuGetRepro\NxApp\NxApp.esproj" (target "_GenerateDotnetCliToolReferenceSpecs" depends on it):
       Using "GetRestoreSettingsTask" task from assembly "C:\Program Files\dotnet\sdk\8.0.300\NuGet.Build.Tasks.dll".
       Task "GetRestoreSettingsTask"
         Assembly loaded during TaskRun (NuGet.Build.Tasks.GetRestoreSettingsTask): NuGet.Configuration, Version=6.10.0
         .97, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (location: C:\Program Files\dotnet\sdk\8.0.300\NuGet.Con
         figuration.dll, MVID: 866e4468-d3e9-47ca-9190-26d4940d8abc, AssemblyLoadContext: MSBuild plugin C:\Program Fil
         es\dotnet\sdk\8.0.300\NuGet.Build.Tasks.dll)
       Done executing task "GetRestoreSettingsTask".
   2:4>Done building target "_GetRestoreSettings" in project "NxApp.esproj".
   2:4>Target "_GenerateDotnetCliToolReferenceSpecs" in file "C:\Program Files\dotnet\sdk\8.0.300\NuGet.targets" from p
       roject "C:\Projects\NuGetRepro\NxApp\NxApp.esproj" (target "_GenerateRestoreGraphProjectEntry" depends on it):
       Using "GetRestoreDotnetCliToolsTask" task from assembly "C:\Program Files\dotnet\sdk\8.0.300\NuGet.Build.Tasks.d
       ll".
       Task "GetRestoreDotnetCliToolsTask"
       Done executing task "GetRestoreDotnetCliToolsTask".
   2:4>Done building target "_GenerateDotnetCliToolReferenceSpecs" in project "NxApp.esproj".
   2:4>Target "_GenerateRestoreGraphProjectEntry" in file "C:\Program Files\dotnet\sdk\8.0.300\NuGet.targets" from proj
       ect "C:\Projects\NuGetRepro\NxApp\NxApp.esproj" (entry point):
   2:4>Done building target "_GenerateRestoreGraphProjectEntry" in project "NxApp.esproj".
   2:4>Done Building Project "C:\Projects\NuGetRepro\NxApp\NxApp.esproj" (_GenerateRestoreGraphProjectEntry target(s)).
     1>Done executing task "MSBuild".
       Task "MSBuild"
         Global Properties:
           ExcludeRestorePackageImports=true
           _RestoreSolutionFileUsed=true
           SolutionDir=C:\Projects\NuGetRepro\
           SolutionName=NuGetRepro
           SolutionFileName=NuGetRepro.sln
           SolutionPath=C:\Projects\NuGetRepro\NuGetRepro.sln
           SolutionExt=.sln
         Additional Properties for project "C:\Projects\NuGetRepro\NxApp\NxApp.esproj":
           Configuration=Debug
           Platform=AnyCPU
     1>Project "C:\Projects\NuGetRepro\NuGetRepro.sln" (1) is building "C:\Projects\NuGetRepro\NxApp\NxApp.esproj" (2:5
       ) on node 1 (_GenerateProjectRestoreGraph target(s)).
   2:5>Target "_GetRestoreProjectStyle" skipped. Previously built successfully.
       Target "_GetRestoreProjectStyle" skipped. Previously built successfully.
       Target "_GetRestoreProjectStyle" skipped. Previously built successfully.
   2:5>Target "_GetRestoreTargetFrameworkOverride" in file "C:\Program Files\dotnet\sdk\8.0.300\NuGet.targets" from pro
       ject "C:\Projects\NuGetRepro\NxApp\NxApp.esproj" (target "_GetRestoreTargetFrameworksOutput" depends on it):
       Task "GetGlobalPropertyValueTask" skipped, due to false condition; ( '$(TargetFrameworks)' != '' ) was evaluated
        as ( '' != '' ).
   2:5>Done building target "_GetRestoreTargetFrameworkOverride" in project "NxApp.esproj".
   2:5>Target "_GetRestoreTargetFrameworksOutput" in file "C:\Program Files\dotnet\sdk\8.0.300\NuGet.targets" from proj
       ect "C:\Projects\NuGetRepro\NxApp\NxApp.esproj" (target "_GenerateRestoreProjectSpec" depends on it):
       Task "GetProjectTargetFrameworksTask" skipped, due to false condition; ( '$(RestoreProjectStyle)' != 'ProjectJso
       n') was evaluated as ( 'ProjectJson' != 'ProjectJson').
   2:5>Done building target "_GetRestoreTargetFrameworksOutput" in project "NxApp.esproj".
       Target "_GetRestoreSettings" skipped. Previously built successfully.
   2:5>Target "_GenerateRestoreProjectSpec" in file "C:\Program Files\dotnet\sdk\8.0.300\NuGet.targets" from project "C
       :\Projects\NuGetRepro\NxApp\NxApp.esproj" (target "_GenerateProjectRestoreGraph" depends on it):
       Task "ConvertToAbsolutePath"
       Done executing task "ConvertToAbsolutePath".
   2:5>Done building target "_GenerateRestoreProjectSpec" in project "NxApp.esproj".
       Target "_GenerateProjectRestoreGraphAllFrameworks" skipped, due to false condition; ( '$(TargetFrameworks)' != '
       ' ) was evaluated as ( '' != '' ).
       Target "_GetRestoreProjectStyle" skipped. Previously built successfully.
       Target "CollectPackageReferences" skipped. Previously built successfully.
   2:5>Target "CollectPackageDownloads" in file "C:\Program Files\dotnet\sdk\8.0.300\NuGet.targets" from project "C:\Pr
       ojects\NuGetRepro\NxApp\NxApp.esproj" (target "_GenerateProjectRestoreGraphPerFramework" depends on it):
       Task "CheckForDuplicateNuGetItemsTask"
       Done executing task "CheckForDuplicateNuGetItemsTask".
   2:5>Done building target "CollectPackageDownloads" in project "NxApp.esproj".
   2:5>Target "CollectFrameworkReferences" in file "C:\Program Files\dotnet\sdk\8.0.300\NuGet.targets" from project "C:
       \Projects\NuGetRepro\NxApp\NxApp.esproj" (target "_GenerateProjectRestoreGraphPerFramework" depends on it):
   2:5>Done building target "CollectFrameworkReferences" in project "NxApp.esproj".
   2:5>Target "CollectCentralPackageVersions" in file "C:\Program Files\dotnet\sdk\8.0.300\NuGet.targets" from project
       "C:\Projects\NuGetRepro\NxApp\NxApp.esproj" (target "_GenerateProjectRestoreGraphPerFramework" depends on it):
       Task "CheckForDuplicateNuGetItemsTask"
       Done executing task "CheckForDuplicateNuGetItemsTask".
   2:5>Done building target "CollectCentralPackageVersions" in project "NxApp.esproj".
   2:5>Target "_GenerateProjectRestoreGraphPerFramework" in file "C:\Program Files\dotnet\sdk\8.0.300\NuGet.targets" fr
       om project "C:\Projects\NuGetRepro\NxApp\NxApp.esproj" (target "_GenerateProjectRestoreGraphCurrentProject" depe
       nds on it):
       Using "GetRestoreProjectReferencesTask" task from assembly "C:\Program Files\dotnet\sdk\8.0.300\NuGet.Build.Task
       s.dll".
       Task "GetRestoreProjectReferencesTask"
       Done executing task "GetRestoreProjectReferencesTask".
       Task "GetRestorePackageReferencesTask" skipped, due to false condition; ( '$(PackageReferenceCompatibleProjectSt
       yle)' == 'true' ) was evaluated as ( 'False' == 'true' ).
       Task "GetCentralPackageVersionsTask" skipped, due to false condition; ( '$(PackageReferenceCompatibleProjectStyl
       e)' == 'true' AND '$(_CentralPackageVersionsEnabled)' == 'true' ) was evaluated as ( 'False' == 'true' AND '' ==
        'true' ).
       Task "GetRestorePackageDownloadsTask" skipped, due to false condition; ( '$(PackageReferenceCompatibleProjectSty
       le)' == 'true' ) was evaluated as ( 'False' == 'true' ).
       Task "GetRestoreFrameworkReferencesTask" skipped, due to false condition; ( '$(PackageReferenceCompatibleProject
       Style)' == 'true' ) was evaluated as ( 'False' == 'true' ).
   2:5>Done building target "_GenerateProjectRestoreGraphPerFramework" in project "NxApp.esproj".
   2:5>Target "_GenerateProjectRestoreGraphCurrentProject" in file "C:\Program Files\dotnet\sdk\8.0.300\NuGet.targets"
       from project "C:\Projects\NuGetRepro\NxApp\NxApp.esproj" (target "_GenerateRestoreDependencies" depends on it):
   2:5>Done building target "_GenerateProjectRestoreGraphCurrentProject" in project "NxApp.esproj".
   2:5>Target "_GenerateRestoreDependencies" in file "C:\Program Files\dotnet\sdk\8.0.300\NuGet.targets" from project "
       C:\Projects\NuGetRepro\NxApp\NxApp.esproj" (target "_GenerateProjectRestoreGraph" depends on it):
   2:5>Done building target "_GenerateRestoreDependencies" in project "NxApp.esproj".
   2:5>Target "_GenerateProjectRestoreGraph" in file "C:\Program Files\dotnet\sdk\8.0.300\NuGet.targets" from project "
       C:\Projects\NuGetRepro\NxApp\NxApp.esproj" (entry point):
   2:5>Done building target "_GenerateProjectRestoreGraph" in project "NxApp.esproj".
   2:5>Target "GeneratePackageJsonProps" in file "C:\Users\assura-mark\.nuget\packages\microsoft.visualstudio.javascrip
       t.sdk\1.0.784122\Sdk\Sdk.targets" from project "C:\Projects\NuGetRepro\NxApp\NxApp.esproj" (target "NPMRestore"
       depends on it):
       Skipping target "GeneratePackageJsonProps" because all output files are up-to-date with respect to the input fil
       es.
       Input files: C:\Projects\NuGetRepro\NxApp\\package.json
       Output files: C:\Projects\NuGetRepro\NxApp\obj\Debug\\package.g.props
   2:5>Done building target "GeneratePackageJsonProps" in project "NxApp.esproj".
   2:5>Target "EvaluateNPMScripts" in file "C:\Users\assura-mark\.nuget\packages\microsoft.visualstudio.javascript.sdk\
       1.0.784122\Sdk\Sdk.targets" from project "C:\Projects\NuGetRepro\NxApp\NxApp.esproj" (target "NPMRestore" depend
       s on it):
   2:5>Done building target "EvaluateNPMScripts" in project "NxApp.esproj".
   2:5>Target "NPMRestore" in file "C:\Users\assura-mark\.nuget\packages\microsoft.visualstudio.javascript.sdk\1.0.7841
       22\Sdk\Sdk.targets" from project "C:\Projects\NuGetRepro\NxApp\NxApp.esproj" (entry point):
   2:5>Done building target "NPMRestore" in project "NxApp.esproj".
   2:5>Done Building Project "C:\Projects\NuGetRepro\NxApp\NxApp.esproj" (_GenerateProjectRestoreGraph target(s)).
     1>Done executing task "MSBuild".
     1>Done building target "_GenerateRestoreGraph" in project "NuGetRepro.sln".
     1>Target "Restore" in file "C:\Program Files\dotnet\sdk\8.0.300\NuGet.targets" from project "C:\Projects\NuGetRepr
       o\NuGetRepro.sln" (entry point):
       Task "RemoveDuplicates"
       Done executing task "RemoveDuplicates".
       Using "RestoreTask" task from assembly "C:\Program Files\dotnet\sdk\8.0.300\NuGet.Build.Tasks.dll".
       Task "RestoreTask"
         Assembly loaded during TaskRun (NuGet.Build.Tasks.RestoreTask): Newtonsoft.Json, Version=13.0.0.0, Culture=neu
         tral, PublicKeyToken=30ad4fe6b2a6aeed (location: C:\Program Files\dotnet\sdk\8.0.300\Newtonsoft.Json.dll, MVID
         : 7e62198b-eab2-4380-bbac-29171862d1d8, AssemblyLoadContext: MSBuild plugin C:\Program Files\dotnet\sdk\8.0.30
         0\NuGet.Build.Tasks.dll)
         Assembly loaded during TaskRun (NuGet.Build.Tasks.RestoreTask): NuGet.Frameworks, Version=6.10.0.97, Culture=n
         eutral, PublicKeyToken=31bf3856ad364e35 (location: C:\Program Files\dotnet\sdk\8.0.300\NuGet.Frameworks.dll, M
         VID: 05e5996d-f121-4c49-b976-ad842a7e715b, AssemblyLoadContext: MSBuild plugin C:\Program Files\dotnet\sdk\8.0
         .300\NuGet.Build.Tasks.dll)
         Assembly loaded during TaskRun (NuGet.Build.Tasks.RestoreTask): NuGet.Packaging, Version=6.10.0.97, Culture=ne
         utral, PublicKeyToken=31bf3856ad364e35 (location: C:\Program Files\dotnet\sdk\8.0.300\NuGet.Packaging.dll, MVI
         D: a5872115-ad31-41c6-8ee1-d250f9a89421, AssemblyLoadContext: MSBuild plugin C:\Program Files\dotnet\sdk\8.0.3
         00\NuGet.Build.Tasks.dll)
         Assembly loaded during TaskRun (NuGet.Build.Tasks.RestoreTask): NuGet.LibraryModel, Version=6.10.0.97, Culture
         =neutral, PublicKeyToken=31bf3856ad364e35 (location: C:\Program Files\dotnet\sdk\8.0.300\NuGet.LibraryModel.dl
         l, MVID: dca91d3d-e887-45d7-adbe-fb21a6d2e8de, AssemblyLoadContext: MSBuild plugin C:\Program Files\dotnet\sdk
         \8.0.300\NuGet.Build.Tasks.dll)
         Assembly loaded during TaskRun (NuGet.Build.Tasks.RestoreTask): NuGet.Versioning, Version=6.10.0.97, Culture=n
         eutral, PublicKeyToken=31bf3856ad364e35 (location: C:\Program Files\dotnet\sdk\8.0.300\NuGet.Versioning.dll, M
         VID: 6c33ba60-7e6e-44e4-9bb0-f837223833cb, AssemblyLoadContext: MSBuild plugin C:\Program Files\dotnet\sdk\8.0
         .300\NuGet.Build.Tasks.dll)
         Assembly loaded during TaskRun (NuGet.Build.Tasks.RestoreTask): System.ObjectModel, Version=8.0.0.0, Culture=n
         eutral, PublicKeyToken=b03f5f7f11d50a3a (location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.5\
         System.ObjectModel.dll, MVID: 5f452493-1ac0-43a3-aeb6-f862b9c112a7, AssemblyLoadContext: Default)
         Assembly loaded during TaskRun (NuGet.Build.Tasks.RestoreTask): NuGet.Protocol, Version=6.10.0.97, Culture=neu
         tral, PublicKeyToken=31bf3856ad364e35 (location: C:\Program Files\dotnet\sdk\8.0.300\NuGet.Protocol.dll, MVID:
          d5266668-ac7a-4040-8fc3-1c7012b4cabd, AssemblyLoadContext: MSBuild plugin C:\Program Files\dotnet\sdk\8.0.300
         \NuGet.Build.Tasks.dll)
         Assembly loaded during TaskRun (NuGet.Build.Tasks.RestoreTask): NuGet.Credentials, Version=6.10.0.97, Culture=
         neutral, PublicKeyToken=31bf3856ad364e35 (location: C:\Program Files\dotnet\sdk\8.0.300\NuGet.Credentials.dll,
          MVID: ea901be9-37b6-4531-b6bb-6c0ca715f2cd, AssemblyLoadContext: MSBuild plugin C:\Program Files\dotnet\sdk\8
         .0.300\NuGet.Build.Tasks.dll)
         X.509 certificate chain validation will use the default trust store selected by .NET for code signing.
         X.509 certificate chain validation will use the default trust store selected by .NET for timestamping.
         Assembly loaded during TaskRun (NuGet.Build.Tasks.RestoreTask): NuGet.DependencyResolver.Core, Version=6.10.0.
         97, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (location: C:\Program Files\dotnet\sdk\8.0.300\NuGet.Depe
         ndencyResolver.Core.dll, MVID: 73a3ef73-6ec0-428c-a2a0-f5c015892b67, AssemblyLoadContext: MSBuild plugin C:\Pr
         ogram Files\dotnet\sdk\8.0.300\NuGet.Build.Tasks.dll)
     1>C:\Program Files\dotnet\sdk\8.0.300\NuGet.targets(169,5): error : Invalid restore input. No target frameworks sp
       ecified. Input files: C:\Projects\NuGetRepro\NxApp\NxApp.esproj, C:\Projects\NuGetRepro\NxApp\project.json. [C:\
       Projects\NuGetRepro\NuGetRepro.sln]
         Assembly loaded during TaskRun (NuGet.Build.Tasks.RestoreTask): System.Diagnostics.StackTrace, Version=8.0.0.0
         , Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (location: C:\Program Files\dotnet\shared\Microsoft.NETCore
         .App\8.0.5\System.Diagnostics.StackTrace.dll, MVID: 3ccc0e56-a52d-437b-9528-5c1c777bd017, AssemblyLoadContext:
          Default)
         NuGet.Commands.RestoreSpecException: Invalid restore input. No target frameworks specified. Input files: C:\Pr
         ojects\NuGetRepro\NxApp\NxApp.esproj, C:\Projects\NuGetRepro\NxApp\project.json.
            at NuGet.Commands.SpecValidationUtility.ValidateFrameworks(PackageSpec spec, IEnumerable`1 files)
            at NuGet.Commands.SpecValidationUtility.ValidateProjectSpecUAP(PackageSpec spec, IEnumerable`1 files)
            at NuGet.Commands.SpecValidationUtility.ValidateProjectSpec(PackageSpec spec)
            at NuGet.Commands.SpecValidationUtility.ValidateDependencySpec(DependencyGraphSpec spec, HashSet`1 projects
         ToSkip)
            at NuGet.Commands.DependencyGraphSpecRequestProvider.GetRequestsFromItems(RestoreArgs restoreContext, Depen
         dencyGraphSpec dgFile)
            at NuGet.Commands.DependencyGraphSpecRequestProvider.CreateRequests(RestoreArgs restoreContext)
            at NuGet.Commands.RestoreRunner.CreatePreLoadedRequests(RestoreArgs restoreContext)
            at NuGet.Commands.RestoreRunner.GetRequests(RestoreArgs restoreContext)
            at NuGet.Commands.RestoreRunner.RunAsync(RestoreArgs restoreContext, CancellationToken token)
            at NuGet.Build.Tasks.BuildTasksUtility.RestoreAsync(DependencyGraphSpec dependencyGraphSpec, Boolean intera
         ctive, Boolean recursive, Boolean noCache, Boolean ignoreFailedSources, Boolean disableParallel, Boolean force
         , Boolean forceEvaluate, Boolean hideWarningsAndErrors, Boolean restorePC, Boolean cleanupAssetsForUnsupported
         Projects, ILogger log, CancellationToken cancellationToken)
            at NuGet.Build.Tasks.RestoreTask.ExecuteAsync(ILogger log)
       Done executing task "RestoreTask" -- FAILED.
     1>Done building target "Restore" in project "NuGetRepro.sln" -- FAILED.
     1>Done Building Project "C:\Projects\NuGetRepro\NuGetRepro.sln" (Restore target(s)) -- FAILED.

Build FAILED.

       "C:\Projects\NuGetRepro\NuGetRepro.sln" (Restore target) (1) ->
       (Restore target) ->
         C:\Program Files\dotnet\sdk\8.0.300\NuGet.targets(169,5): error : Invalid restore input. No target frameworks
       specified. Input files: C:\Projects\NuGetRepro\NxApp\NxApp.esproj, C:\Projects\NuGetRepro\NxApp\project.json. [C
       :\Projects\NuGetRepro\NuGetRepro.sln]

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.51
jeffkl commented 1 month ago

Team Triage: Please attach a minimal repro ZIP with a project we can restore to reproduce the problem and investigate further.

Assura-Mark commented 1 month ago

NuGetRepro.zip

You should be able to reproduce it with the above project.

jebriede commented 1 month ago

I was able to reproduce the issue using the provided example solution. When attempting to restore in VS: Error occurred while restoring NuGet packages: Invalid restore input. No target frameworks specified. Input files: C:\temp\NuGetRestoreBug\NuGetRestoreBug\NuGetRestoreBug.esproj, C:\temp\NuGetRestoreBug\NuGetRestoreBug\project.json. When attempting to restore in the CLI using dotnet restore: C:\Program Files\dotnet\sdk\9.0.100-preview.4.24267.66\NuGet.targets(170,5): error : Invalid restore input. No target frameworks specified. Input files: C:\temp\NuGetRestoreBug\NuGetRestoreBug\NuGetRestoreBug.esproj, C:\temp\NuGetRestoreBug\NuGetRestoreBug\project.json.

connorjs commented 14 hours ago

In case it helps, I see a similar issue with my esproj and just set TargetFramework property to fix it. Unsure if same issue though...

Example: <TargetFramework>net8.0</TargetFramework>

Assura-Mark commented 14 hours ago

In case it helps, I see a similar issue with my esproj and just set TargetFramework property to fix it. Unsure if same issue though...

Example: <TargetFramework>net8.0</TargetFramework>

Thanks for the suggestion, I've just tried it:

<Project Sdk="Microsoft.VisualStudio.JavaScript.Sdk/1.0.784122">
    <PropertyGroup>
        <TargetFramework>net8.0</TargetFramework>
    </PropertyGroup>
</Project>

and it seems to still have the same problem:

dotnet restore .\NuGetRestoreBug.sln
  Determining projects to restore...
C:\Program Files\dotnet\sdk\8.0.300\NuGet.targets(169,5): error : Invalid restore input. No target frameworks specified
. Input files: C:\Projects\NuGetRepro\NuGetRestoreBug\NuGetRestoreBug.esproj, C:\Projects\NuGetRepro\NuGetRestoreBug\pr
oject.json. [C:\Projects\NuGetRepro\NuGetRestoreBug.sln]

I'd guess it's a different issue.