Skip to content

Commit

Permalink
Change to MSTest NuGet & update other NuGet packages (#82, #83, #84)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichielOda committed Dec 10, 2024
1 parent 831a847 commit 4429602
Show file tree
Hide file tree
Showing 7 changed files with 121 additions and 143 deletions.
6 changes: 5 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
[*]
indent_style = space
indent_size = 4
end_of_line = crlf
trim_trailing_whitespace = true

[*.csproj]
indent_style = space
indent_size = 2
trim_trailing_whitespace = true

[*.cs]
Expand Down
3 changes: 0 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ updates:
schedule:
interval: "daily"
groups:
mstest:
patterns:
- "MSTest.*"
skyline-cicd:
patterns:
- "Skyline.DataMiner.CICD.*"
71 changes: 31 additions & 40 deletions Common/Common.csproj
Original file line number Diff line number Diff line change
@@ -1,47 +1,38 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<AssemblyName>Skyline.DataMiner.CICD.Models.Common</AssemblyName>
<RootNamespace>Skyline.DataMiner.CICD.Models.Common</RootNamespace>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Authors>SkylineCommunications</Authors>
<Company>Skyline Communications</Company>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
<PackageIcon>icon.png</PackageIcon>
<PackageProjectUrl>https://skyline.be/</PackageProjectUrl>
<PackageTags>Skyline;DataMiner;CICD</PackageTags>
<Description>Library containing common functionality for models of DataMiner objects (e.g. protocols).</Description>
<PackageReadmeFile>README.md</PackageReadmeFile>
<RepositoryUrl>https://github.com/SkylineCommunications/Skyline.DataMiner.CICD.Models.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<AssemblyName>Skyline.DataMiner.CICD.Models.Common</AssemblyName>
<RootNamespace>Skyline.DataMiner.CICD.Models.Common</RootNamespace>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Authors>SkylineCommunications</Authors>
<Company>Skyline Communications</Company>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
<PackageIcon>icon.png</PackageIcon>
<PackageProjectUrl>https://skyline.be/</PackageProjectUrl>
<PackageTags>Skyline;DataMiner;CICD</PackageTags>
<Description>Library containing common functionality for models of DataMiner objects (e.g. protocols).</Description>
<PackageReadmeFile>README.md</PackageReadmeFile>
<RepositoryUrl>https://github.com/SkylineCommunications/Skyline.DataMiner.CICD.Models.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>

<ItemGroup>
<None Include="..\README.md">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
<None Include="..\_NuGetItems\icon.png">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
<None Include="..\_NuGetItems\LICENSE.txt">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
</ItemGroup>
<ItemGroup>
<None Include="..\README.md" Pack="true" PackagePath="" />
<None Include="..\_NuGetItems\icon.png" Pack="true" PackagePath="" />
<None Include="..\_NuGetItems\LICENSE.txt" Pack="true" PackagePath="" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Scripting" Version="3.11.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="3.11.0" />
<PackageReference Include="Microsoft.Win32.Registry" Version="5.0.0" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Scripting" Version="3.11.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="3.11.0" />
<PackageReference Include="Microsoft.Win32.Registry" Version="5.0.0" />
</ItemGroup>

<ItemGroup>
<InternalsVisibleTo Include="Skyline.DataMiner.CICD.Models.Protocol" />
</ItemGroup>
<ItemGroup>
<InternalsVisibleTo Include="Skyline.DataMiner.CICD.Models.Protocol" />
</ItemGroup>

</Project>
38 changes: 19 additions & 19 deletions Protocol.Generator/Protocol.Generator.csproj
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net472</TargetFramework>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net472</TargetFramework>
<LangVersion>latest</LangVersion>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.6.0" />
<PackageReference Include="Skyline.DataMiner.XmlSchemas.Protocol" Version="1.0.7" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.6.0" />
<PackageReference Include="Skyline.DataMiner.XmlSchemas.Protocol" Version="1.0.7" />
</ItemGroup>

<ItemGroup>
<InternalsVisibleTo Include="$(MSBuildProjectName)Tests" />
</ItemGroup>
<ItemGroup>
<InternalsVisibleTo Include="$(MSBuildProjectName)Tests" />
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="call &quot;$(OutDir)\Protocol.Generator.exe&quot; $(SolutionDir)&#xD;&#xA;" />
</Target>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="call &quot;$(OutDir)\Protocol.Generator.exe&quot; $(SolutionDir)&#xD;&#xA;" />
</Target>

</Project>
32 changes: 15 additions & 17 deletions Protocol.GeneratorTests/Protocol.GeneratorTests.csproj
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net472</TargetFramework>
<PropertyGroup>
<TargetFramework>net472</TargetFramework>

<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
</PropertyGroup>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="MSTest.TestAdapter" Version="3.6.3" />
<PackageReference Include="MSTest.TestFramework" Version="3.6.3" />
<PackageReference Include="coverlet.collector" Version="6.0.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<PackageReference Include="MSTest" Version="3.6.4" />
<PackageReference Include="coverlet.collector" Version="6.0.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Protocol.Generator\Protocol.Generator.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Protocol.Generator\Protocol.Generator.csproj" />
</ItemGroup>

</Project>
77 changes: 34 additions & 43 deletions Protocol/Protocol.csproj
Original file line number Diff line number Diff line change
@@ -1,55 +1,46 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<AssemblyName>Skyline.DataMiner.CICD.Models.Protocol</AssemblyName>
<RootNamespace>Skyline.DataMiner.CICD.Models.Protocol</RootNamespace>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Authors>SkylineCommunications</Authors>
<Company>Skyline Communications</Company>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
<PackageIcon>icon.png</PackageIcon>
<PackageProjectUrl>https://skyline.be/</PackageProjectUrl>
<PackageTags>Skyline;DataMiner;CICD</PackageTags>
<Description>Library containing the models for a DataMiner Protocol.</Description>
<PackageReadmeFile>README.md</PackageReadmeFile>
<RepositoryUrl>https://github.com/SkylineCommunications/Skyline.DataMiner.CICD.Models.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<AssemblyName>Skyline.DataMiner.CICD.Models.Protocol</AssemblyName>
<RootNamespace>Skyline.DataMiner.CICD.Models.Protocol</RootNamespace>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Authors>SkylineCommunications</Authors>
<Company>Skyline Communications</Company>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
<PackageIcon>icon.png</PackageIcon>
<PackageProjectUrl>https://skyline.be/</PackageProjectUrl>
<PackageTags>Skyline;DataMiner;CICD</PackageTags>
<Description>Library containing the models for a DataMiner Protocol.</Description>
<PackageReadmeFile>README.md</PackageReadmeFile>
<RepositoryUrl>https://github.com/SkylineCommunications/Skyline.DataMiner.CICD.Models.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>

<ItemGroup>
<SonarQubeSetting Include="sonar.exclusions">
<Value>Models/**</Value>
</SonarQubeSetting>
</ItemGroup>
<ItemGroup>
<SonarQubeSetting Include="sonar.exclusions">
<Value>Models/**</Value>
</SonarQubeSetting>
</ItemGroup>

<ItemGroup>
<None Include="..\README.md">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
<None Include="..\_NuGetItems\icon.png">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
<None Include="..\_NuGetItems\LICENSE.txt">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
</ItemGroup>
<ItemGroup>
<None Include="..\README.md" Pack="true" PackagePath="" />
<None Include="..\_NuGetItems\icon.png" Pack="true" PackagePath="" />
<None Include="..\_NuGetItems\LICENSE.txt" Pack="true" PackagePath="" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Skyline.DataMiner.CICD.Common" Version="1.0.4" />
<PackageReference Include="Skyline.DataMiner.CICD.Parsers.Protocol" Version="1.0.12" />
</ItemGroup>

<ItemGroup>
<InternalsVisibleTo Include="$(MSBuildProjectName)Tests" />
</ItemGroup>
<ItemGroup>
<InternalsVisibleTo Include="$(MSBuildProjectName)Tests" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Common\Common.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Common\Common.csproj" />
</ItemGroup>
</Project>
37 changes: 17 additions & 20 deletions ProtocolTests/ProtocolTests.csproj
Original file line number Diff line number Diff line change
@@ -1,27 +1,24 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net472;net6.0</TargetFrameworks>
<PropertyGroup>
<TargetFrameworks>net48;net6.0;net8.0</TargetFrameworks>

<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
</PropertyGroup>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="FluentAssertions" Version="5.10.3" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="MSTest.TestAdapter" Version="3.6.3" />
<PackageReference Include="MSTest.TestFramework" Version="3.6.3" />
<PackageReference Include="coverlet.collector" Version="6.0.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Skyline.DataMiner.Dev.Protocol" Version="10.4.11" />
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="FluentAssertions" Version="7.0.0" />
<PackageReference Include="MSTest" Version="3.6.4" />
<PackageReference Include="coverlet.collector" Version="6.0.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Skyline.DataMiner.Dev.Protocol" Version="10.4.12" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Protocol\Protocol.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Protocol\Protocol.csproj" />
</ItemGroup>

</Project>

0 comments on commit 4429602

Please sign in to comment.