VS: .Net SDK Style projects can add Reference to dlls

When support for `DOTNET_SDK` was added, only a minimal set of options
were built in. Based on user feedback, support for reference to dlls
(not just projects) is needed. That support is added here.

Fixes: #23166
This commit is contained in:
Sumit Bhardwaj
2022-02-01 07:02:13 -08:00
parent 0294570d06
commit 5ee3154f65
2 changed files with 5 additions and 1 deletions
@@ -928,6 +928,7 @@ void cmVisualStudio10TargetGenerator::WriteSdkStyleProjectFile(
this->WriteDotNetDocumentationFile(e0);
this->WriteAllSources(e0);
this->WriteDotNetReferences(e0);
this->WritePackageReferences(e0);
this->WriteProjectReferences(e0);
}
+4 -1
View File
@@ -15,4 +15,7 @@ add_executable(DotNetSdk csharponly.cs)
target_link_libraries(DotNetSdk dotNetSdkLib1)
set_target_properties(DotNetSdk
PROPERTIES
VS_GLOBAL_RuntimeIdentifier win10-x64)
VS_GLOBAL_RuntimeIdentifier win10-x64
VS_DOTNET_REFERENCE_SomeDll
${PROJECT_SOURCE_DIR}/SomeDll.dll)