From ea3d60cffaa3761f258ff1bea4ba6f589cae7ad7 Mon Sep 17 00:00:00 2001 From: Wil Stark Date: Tue, 11 Dec 2018 10:47:48 -0800 Subject: VisualStudio10TargetGenerator: support C# refs with '.' in file name. Fixes: #18696 --- Source/cmVisualStudio10TargetGenerator.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index 7d7defc..667e40b 100644 --- a/Source/cmVisualStudio10TargetGenerator.cxx +++ b/Source/cmVisualStudio10TargetGenerator.cxx @@ -723,7 +723,8 @@ void cmVisualStudio10TargetGenerator::WriteDotNetReferences(Elem& e0) // if the entry from VS_DOTNET_REFERENCES is an existing file, generate // a new hint-reference and name it from the filename if (cmsys::SystemTools::FileExists(ri, true)) { - std::string name = cmsys::SystemTools::GetFilenameWithoutExtension(ri); + std::string name = + cmsys::SystemTools::GetFilenameWithoutLastExtension(ri); std::string path = ri; ConvertToWindowsSlash(path); this->DotNetHintReferences[""].push_back( -- cgit v0.12