Skip to content

Commit 51b88bc

Browse files
Merge pull request #346 from nvisionative/develop
Merge `develop` into `main` for 2.1.2 release
2 parents 0b0a862 + 829c276 commit 51b88bc

File tree

6 files changed

+25
-14
lines changed

6 files changed

+25
-14
lines changed

nvQuickSite/Controllers/FileSystemController.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -173,14 +173,14 @@ internal static void CreateDirectories(string installFolder, string siteName, bo
173173
if (!Directory.Exists(logsDir))
174174
{
175175
Directory.CreateDirectory(logsDir);
176-
SetFolderPermission(dbServiceAccount, logsDir);
176+
SetFolderPermission(appPoolName, logsDir);
177177
SetFolderPermission(authenticatedUsers, logsDir);
178178
}
179179
else
180180
{
181181
DeleteDirectory(logsDir, null, true);
182182
Directory.CreateDirectory(logsDir);
183-
SetFolderPermission(dbServiceAccount, logsDir);
183+
SetFolderPermission(appPoolName, logsDir);
184184
SetFolderPermission(authenticatedUsers, logsDir);
185185
}
186186

@@ -420,8 +420,8 @@ private static void SetFolderPermission(string accountName, string folderPath)
420420
}
421421
catch (Exception ex)
422422
{
423-
Log.Logger.Error(ex, "Error occured while attempting to set folder permissions");
424-
throw new FileSystemControllerException("There was a problem setting the folder permissions for folder path: " + folderPath, ex) { Source = "Set Folder Permission" };
423+
Log.Logger.Error(ex, "Error occured while attempting to set permissions for {accountName} on folder {folderPath}", accountName, folderPath);
424+
throw new FileSystemControllerException("There was a problem setting the folder permissions for folder path " + folderPath + " using account name " + accountName, ex) { Source = "Set Folder Permission" };
425425
}
426426
}
427427
}

nvQuickSite/Controllers/PackageController.cs

+11-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,17 @@ public static IEnumerable<Package> GetPackageList()
8484
var ghPackages = GetGitHubPackages();
8585
if (ghPackages.Any())
8686
{
87-
packages = packages.Union(ghPackages).ToList();
87+
// Deduplicate exising packages to be safe and fix users that already have duplicates in packages.json
88+
packages = packages.GroupBy(p => p.version).Select(p => p.First()).ToList();
89+
90+
foreach (var ghPackage in ghPackages)
91+
{
92+
// Only add the github packages if they are not yet in the local packages.json file.
93+
if (!packages.Any(p => p.version == ghPackage.version))
94+
{
95+
packages.Add(ghPackage);
96+
}
97+
}
8898
}
8999
}
90100

nvQuickSite/Properties/AssemblyInfo.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@
4949
// You can specify all the values or you can default the Build and Revision Numbers
5050
// by using the '*' as shown below:
5151
// [assembly: AssemblyVersion("1.0.*")]
52-
[assembly: AssemblyVersion("2.1.1")]
53-
[assembly: AssemblyFileVersion("2.1.1")]
52+
[assembly: AssemblyVersion("2.1.2")]
53+
[assembly: AssemblyFileVersion("2.1.2")]
5454
[assembly: NeutralResourcesLanguage("en")]

nvQuickSite/data/latestVersion.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"latestVersion": "2.1.1"
2+
"latestVersion": "2.1.2"
33
}

nvQuickSite/nvQuickSite.csproj

+6-6
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<FileAlignment>512</FileAlignment>
1414
<IsWebBootstrapper>false</IsWebBootstrapper>
1515
<TargetFrameworkProfile />
16+
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
1617
<PublishUrl>C:\Dev\nvQuickSite\Publish\</PublishUrl>
1718
<Install>true</Install>
1819
<InstallFrom>Disk</InstallFrom>
@@ -32,7 +33,6 @@
3233
<UseApplicationTrust>false</UseApplicationTrust>
3334
<PublishWizardCompleted>true</PublishWizardCompleted>
3435
<BootstrapperEnabled>true</BootstrapperEnabled>
35-
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
3636
</PropertyGroup>
3737
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
3838
<PlatformTarget>AnyCPU</PlatformTarget>
@@ -58,10 +58,10 @@
5858
<ErrorReport>prompt</ErrorReport>
5959
<WarningLevel>4</WarningLevel>
6060
<Prefer32Bit>false</Prefer32Bit>
61-
<RunCodeAnalysis>true</RunCodeAnalysis>
62-
<CodeAnalysisRuleSet>
63-
</CodeAnalysisRuleSet>
61+
<RunCodeAnalysis>false</RunCodeAnalysis>
62+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
6463
<DocumentationFile>bin\Release\nvQuickSite.xml</DocumentationFile>
64+
<CodeAnalysisIgnoreGeneratedCode>true</CodeAnalysisIgnoreGeneratedCode>
6565
</PropertyGroup>
6666
<PropertyGroup>
6767
<ManifestCertificateThumbprint>0A724629BFD7DFCC40A44BF2FB61D13E16ED4A93</ManifestCertificateThumbprint>
@@ -272,8 +272,8 @@
272272
<PackageReference Include="MetroFramework">
273273
<Version>1.2.0.3</Version>
274274
</PackageReference>
275-
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers">
276-
<Version>3.3.1</Version>
275+
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers">
276+
<Version>5.0.3</Version>
277277
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
278278
<PrivateAssets>all</PrivateAssets>
279279
</PackageReference>

nvQuickSiteWixInstaller/nvQuickSiteWixInstaller.wixproj

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
1818
<OutputPath>bin\$(Configuration)\</OutputPath>
1919
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
20+
<SuppressIces>ICE69</SuppressIces>
2021
</PropertyGroup>
2122
<ItemGroup>
2223
<Compile Include="Product.wxs" />

0 commit comments

Comments
 (0)