mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-20 06:48:38 -05:00
VisualStudio10TargetGenerator: support C# refs with '.' in file name.
Fixes: #18696
This commit is contained in:
@@ -723,7 +723,8 @@ void cmVisualStudio10TargetGenerator::WriteDotNetReferences(Elem& e0)
|
|||||||
// if the entry from VS_DOTNET_REFERENCES is an existing file, generate
|
// if the entry from VS_DOTNET_REFERENCES is an existing file, generate
|
||||||
// a new hint-reference and name it from the filename
|
// a new hint-reference and name it from the filename
|
||||||
if (cmsys::SystemTools::FileExists(ri, true)) {
|
if (cmsys::SystemTools::FileExists(ri, true)) {
|
||||||
std::string name = cmsys::SystemTools::GetFilenameWithoutExtension(ri);
|
std::string name =
|
||||||
|
cmsys::SystemTools::GetFilenameWithoutLastExtension(ri);
|
||||||
std::string path = ri;
|
std::string path = ri;
|
||||||
ConvertToWindowsSlash(path);
|
ConvertToWindowsSlash(path);
|
||||||
this->DotNetHintReferences[""].push_back(
|
this->DotNetHintReferences[""].push_back(
|
||||||
|
|||||||
Reference in New Issue
Block a user