Skip to content

Commit

Permalink
remove warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bbtbir committed Oct 5, 2022
1 parent c268852 commit d7be441
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 10 deletions.
13 changes: 12 additions & 1 deletion src/TfsUrlParser.Tests/TfsUrlParser.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>Net6.0</TargetFramework>
<TargetLatestRuntimePatch>false</TargetLatestRuntimePatch>
</PropertyGroup>

<PropertyGroup>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>

<PropertyGroup>
<IsPackable>false</IsPackable>
<AssemblyTitle>TfsUrlParser</AssemblyTitle>
<Company>BBT Software AG</Company>
Expand All @@ -10,12 +18,14 @@
<CodeAnalysisRuleSet>..\TfsUrlParser.Tests.ruleset</CodeAnalysisRuleSet>
<OutputPath>bin\$(Configuration)\</OutputPath>
</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugType>full</DebugType>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Shouldly" Version="4.1.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" />
Expand All @@ -24,6 +34,7 @@
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\TfsUrlParser\TfsUrlParser.csproj" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/TfsUrlParser/RepositoryDescription.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public RepositoryDescription(Uri repoUrl)
var splitFirstPart = splitPath[0].Split(new[] { '/' }, StringSplitOptions.RemoveEmptyEntries);

// visualstudio.com URLs don't contain the collection in the path
if (splitFirstPart.Length == 1 && this.ServerUrl.Host.EndsWith("visualstudio.com"))
if (splitFirstPart.Length == 1 && this.ServerUrl.Host.EndsWith("visualstudio.com", StringComparison.OrdinalIgnoreCase))
{
this.CollectionName = "DefaultCollection";
this.CollectionUrl = this.ServerUrl;
Expand Down
27 changes: 19 additions & 8 deletions src/TfsUrlParser/TfsUrlParser.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>

<PropertyGroup>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>

<PropertyGroup>
<AssemblyTitle>TfsUrlParser</AssemblyTitle>
<Company>BBT Software AG</Company>
<Product>TfsUrlParser</Product>
Expand All @@ -11,18 +18,22 @@
<OutputPath>bin\$(Configuration)\</OutputPath>
<DebugSymbols>true</DebugSymbols>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugType>full</DebugType>
</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="3.3.2">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>

<PropertyGroup>
<AnalysisMode>AllEnabledByDefault</AnalysisMode>
</PropertyGroup>
</Project>

0 comments on commit d7be441

Please sign in to comment.