I'm currently trying to open a window with the System.Windows. I have included three assembly references:
<ItemGroup>
<Reference Include="PresentationFramework">
<HintPath>C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\PresentationFramework.dll</HintPath>
</Reference>
<Reference Include="WindowsBase">
<HintPath>C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\WindowsBase.dll</HintPath>
</Reference>
<Reference Include="PresentationCore">
<HintPath>C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\PresentationCore.dll</HintPath>
</Reference>
</ItemGroup>
Upon attempting to run it with dotnet run, I get the error, error CS7069: Reference to type 'DependencyObject' claims it is defined in 'WindowsBase', but it could not be found. I'm not sure what I'm doing wrong, since I've added an assembly reference to the needed file.
I've tried referencing the respective files in C:\Windows\Microsoft.NET\assembly, but it still didn't allow me to run the program.
Please note I am using Visual Studio Code, and not Visual Studio.
Any help is appreciated, since I'm very new to working with C# outside of a game engine.