Skip to content

Commit add15c2

Browse files
committed
v1.2.1
1 parent b61fb4d commit add15c2

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

RadProjectsExtension/source.extension.vsixmanifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
33
<Metadata>
4-
<Identity Id="RadProjectsExtension.396b99e3-35af-4dc6-8e72-2cd8d2681e92" Version="1.2.0" Language="en-US" Publisher="Radek Adamec" />
4+
<Identity Id="RadProjectsExtension.396b99e3-35af-4dc6-8e72-2cd8d2681e92" Version="1.2.1" Language="en-US" Publisher="Radek Adamec" />
55
<DisplayName>RadProjectsExtension</DisplayName>
66
<Description xml:space="preserve">Visual Studio 2017 extension helper for RAD projects.
77
Currently supports just extending the solutions by templates (in reality used to add build support projects and adjust the build dependencies)</Description>

RadProjectsExtension/utils/FileUtils.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ public static void FileCopy(string sourceFileName, string destFileName, bool ove
6868
}
6969
else
7070
{
71-
var fileName = Path.GetFileName(destFileName).ToLower();
72-
if (doNotOverwriteFileNames == null || !doNotOverwriteFileNames.Exists(f => f.ToLower().EndsWith(fileName)))
71+
var fileName = Path.GetFileName(destFileName);
72+
if (doNotOverwriteFileNames == null || !doNotOverwriteFileNames.Exists(f => string.Equals(f, fileName, StringComparison.CurrentCultureIgnoreCase)))
7373
{
7474
File.Copy(sourceFileName, destFileName, true);
7575
}

RadProjectsExtension/utils/SolutionInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public bool ProjectExists(string projectFileName)
7979
return ExistingProjects.FirstOrDefault(p =>
8080
{
8181
ThreadHelper.ThrowIfNotOnUIThread();
82-
return new FileInfo(p.FileName).Name == projectFileName;
82+
return (!string.IsNullOrEmpty(p.FileName) && new FileInfo(p.FileName).Name == projectFileName);
8383
}) != null;
8484
}
8585

changelog.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,19 @@ All notable changes to this project will be documented in this file.
33

44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
55

6+
## Unreleased ##
67

78
## Known Issues ##
89
- Solution console: The color of the input text is not sometimes working properly
910

11+
## [1.2.1] - 2018-12-11 ##
12+
13+
### Fixed ###
14+
- FileUtils (used in Apply Template) - don't overwrite files now compares exactly the file name and is case insensitive
15+
- FileUtils (used in Apply Template) - keeps the case of file names during copy from template
16+
- Fixed the crash when a template was applied to solution with solution items virtual project (crashed)
17+
18+
1019
## [1.2.0] - 2018-11-10 ##
1120
### Added ###
1221
- Checklists functionality
@@ -33,7 +42,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
3342
- Initial release
3443
- Solution (Project) Templates functionality
3544

36-
[1.2.0]: https://github.com/adamecr/RadProjectsExtension/compare/v1.1.0...v1.1.2
45+
[1.2.1]: https://github.com/adamecr/RadProjectsExtension/compare/v1.2.0...v1.2.1
46+
[1.2.0]: https://github.com/adamecr/RadProjectsExtension/compare/v1.1.0...v1.2.0
3747
[1.1.0]: https://github.com/adamecr/RadProjectsExtension/compare/v1.0.1...v1.1.0
3848
[1.0.1]: https://github.com/adamecr/RadProjectsExtension/compare/v1.0.0...v1.0.1
3949
[1.0.0]: https://github.com/adamecr/RadProjectsExtension/releases/tag/v1.0.0

0 commit comments

Comments
 (0)