summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-02-02 13:21:10 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-02-02 13:21:16 (GMT)
commit0f316675cfb572058b2077e72a8ecbb6b5c7b534 (patch)
treec094d27427f11b26e5dbd92502bf36736a969fc2
parent490e58905d801d3cc01afdeb5b162f6186a4e040 (diff)
parent5ee3154f651428b1a57d0d87be4e462728446842 (diff)
downloadCMake-0f316675cfb572058b2077e72a8ecbb6b5c7b534.zip
CMake-0f316675cfb572058b2077e72a8ecbb6b5c7b534.tar.gz
CMake-0f316675cfb572058b2077e72a8ecbb6b5c7b534.tar.bz2
Merge topic 'dotnet_ref_in_sdk'
5ee3154f65 VS: .Net SDK Style projects can add Reference to dlls Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6932
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx1
-rw-r--r--Tests/RunCMake/VsDotnetSdk/VsDotnetSdk.cmake5
2 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index f325994..be46825 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -928,6 +928,7 @@ void cmVisualStudio10TargetGenerator::WriteSdkStyleProjectFile(
this->WriteDotNetDocumentationFile(e0);
this->WriteAllSources(e0);
+ this->WriteDotNetReferences(e0);
this->WritePackageReferences(e0);
this->WriteProjectReferences(e0);
}
diff --git a/Tests/RunCMake/VsDotnetSdk/VsDotnetSdk.cmake b/Tests/RunCMake/VsDotnetSdk/VsDotnetSdk.cmake
index 60066ab..c585f5e 100644
--- a/Tests/RunCMake/VsDotnetSdk/VsDotnetSdk.cmake
+++ b/Tests/RunCMake/VsDotnetSdk/VsDotnetSdk.cmake
@@ -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)