Skip to content

Commit 29d17bc

Browse files
Update project files and NuGet package versions
Removed legacy Visual Studio and test project properties from dbatools.Tests.csproj and added modern .NET test project settings. Updated several NuGet package versions in dbatools.csproj to the latest releases for improved compatibility and features.
1 parent 6320a49 commit 29d17bc

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

project/dbatools.Tests/dbatools.Tests.csproj

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,11 @@
22
<PropertyGroup>
33
<RootNamespace>Dataplat.Dbatools</RootNamespace>
44
<TargetFrameworks>net472;net8.0</TargetFrameworks>
5-
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
6-
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
7-
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
8-
<ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath>
9-
<IsCodedUITest>False</IsCodedUITest>
10-
<TestProjectType>UnitTest</TestProjectType>
5+
<IsPackable>false</IsPackable>
6+
<IsTestProject>true</IsTestProject>
117
<AssemblyTitle>dbatools.Tests</AssemblyTitle>
128
<Product>dbatools.Tests</Product>
13-
<Copyright>Copyright © 2021</Copyright>
9+
<Copyright>Copyright © 2021</Copyright>
1410
<OutputPath>bin\$(Configuration)\</OutputPath>
1511
</PropertyGroup>
1612
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
@@ -32,7 +28,6 @@
3228
<DebugType>pdbonly</DebugType>
3329
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
3430
</PropertyGroup>
35-
<Import Project="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" />
3631
<ItemGroup>
3732
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.5.0" />
3833
<PackageReference Include="MSTest.TestAdapter" Version="3.0.2" />

project/dbatools/dbatools.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@
5353

5454
<!-- Shared packages for both frameworks -->
5555
<ItemGroup>
56-
<PackageReference Include="Microsoft.AnalysisServices" Version="19.101.1" />
57-
<PackageReference Include="Microsoft.Data.SqlClient" Version="6.0.2" />
58-
<PackageReference Include="Microsoft.SqlServer.DacFx" Version="170.0.94" />
59-
<PackageReference Include="Microsoft.SqlServer.SqlManagementObjects" Version="172.76.0" />
56+
<PackageReference Include="Microsoft.AnalysisServices" Version="19.107.2" />
57+
<PackageReference Include="Microsoft.Data.SqlClient" Version="6.1.3" />
58+
<PackageReference Include="Microsoft.SqlServer.DacFx" Version="170.2.70" />
59+
<PackageReference Include="Microsoft.SqlServer.SqlManagementObjects" Version="180.10.0" />
6060
<PackageReference Include="Microsoft.SqlServer.XEvent.XELite" Version="2024.2.5.1" />
6161
</ItemGroup>
6262

0 commit comments

Comments
 (0)