Merge topic 'vs-csharp-ref-dot'

ea3d60cffa VisualStudio10TargetGenerator: support C# refs with '.' in file name.

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2729
This commit is contained in:
Brad King
2018-12-13 15:02:54 +00:00
committed by Kitware Robot
+2 -1
View File
@@ -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(