In VS 2022 anytime I add the Microsoft.ML.OnnxRuntime.DirectML nuget package to my project it breaks RootNamespaces. If I comment out the package in the .csproj file it starts working again. This only applies to subfolders, the root folder works fine.
It only breaks it for the project it was added to. If I add it to a secondary project in my solution, and then add a reference to that project it does not break the RootNamespaces in the primary project.
To reproduce
Create new (WPF?) project
add Microsoft.ML.OnnxRuntime.DirectML to the project
Create a subfolder
Add new class to subfolder
notice it does not use the RootNamespaces of the project, only the folder
Remove Microsoft.ML.OnnxRuntime.DirectML from project
Add new class to subfolder
notice it now it does use the RootNamespaces of the project
This issue has been automatically marked as stale due to inactivity and will be closed in 30 days if no further activity occurs. If further support is needed, please provide an update and/or more details.
Describe the issue
In VS 2022 anytime I add the Microsoft.ML.OnnxRuntime.DirectML nuget package to my project it breaks RootNamespaces. If I comment out the package in the .csproj file it starts working again. This only applies to subfolders, the root folder works fine.
It only breaks it for the project it was added to. If I add it to a secondary project in my solution, and then add a reference to that project it does not break the RootNamespaces in the primary project.
To reproduce
Urgency
No response
Platform
Windows
OS Version
11
ONNX Runtime Installation
Released Package
ONNX Runtime Version or Commit ID
1.19
ONNX Runtime API
C#
Architecture
X64
Execution Provider
DirectML
Execution Provider Library Version
1.18.1; 1.19