mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-24 07:08:38 -05:00
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:
@@ -928,6 +928,7 @@ void cmVisualStudio10TargetGenerator::WriteSdkStyleProjectFile(
|
||||
|
||||
this->WriteDotNetDocumentationFile(e0);
|
||||
this->WriteAllSources(e0);
|
||||
this->WriteDotNetReferences(e0);
|
||||
this->WritePackageReferences(e0);
|
||||
this->WriteProjectReferences(e0);
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user