Skip to content

Commit cc3133e

Browse files
authored
Add missing project properties (#4)
***NO_CI***
1 parent f87eaba commit cc3133e

File tree

5 files changed

+11
-4
lines changed

5 files changed

+11
-4
lines changed

MsgPack.Tests/MsgPack.Tests.csproj

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
88
<UseVSTest>true</UseVSTest>
9+
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
10+
<RestoreLockedMode Condition="'$(TF_BUILD)' == 'True' or '$(ContinuousIntegrationBuild)' == 'True'">true</RestoreLockedMode>
911
</PropertyGroup>
1012

1113
<ItemGroup>

NFUnitTest/NFUnitTest.nfproj

+5-2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
<IsTestProject>true</IsTestProject>
2222
<TestProjectType>UnitTest</TestProjectType>
2323
<TargetFrameworkVersion>v1.0</TargetFrameworkVersion>
24+
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
25+
<RestoreLockedMode Condition="'$(TF_BUILD)' == 'True' or '$(ContinuousIntegrationBuild)' == 'True'">true</RestoreLockedMode>
2426
</PropertyGroup>
2527
<Import Project="$(NanoFrameworkProjectSystemPath)NFProjectSystem.props" Condition="Exists('$(NanoFrameworkProjectSystemPath)NFProjectSystem.props')" />
2628
<PropertyGroup>
@@ -32,6 +34,7 @@
3234
<ItemGroup>
3335
<None Include="nano.runsettings" />
3436
<None Include="packages.config" />
37+
<None Include="packages.lock.json" />
3538
</ItemGroup>
3639
<ItemGroup>
3740
<ProjectReference Include="..\nanoFramework.MessagePack\nanoFramework.MessagePack.nfproj" />
@@ -46,10 +49,10 @@
4649
<Reference Include="nanoFramework.System.Text, Version=1.3.42.0, Culture=neutral, PublicKeyToken=c07d481e9758c731">
4750
<HintPath>..\packages\nanoFramework.System.Text.1.3.42\lib\nanoFramework.System.Text.dll</HintPath>
4851
</Reference>
49-
<Reference Include="nanoFramework.TestFramework, Version=3.0.77.0, Culture=neutral, PublicKeyToken=c07d481e9758c731">
52+
<Reference Include="nanoFramework.TestFramework">
5053
<HintPath>..\packages\nanoFramework.TestFramework.3.0.77\lib\nanoFramework.TestFramework.dll</HintPath>
5154
</Reference>
52-
<Reference Include="nanoFramework.UnitTestLauncher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=c07d481e9758c731">
55+
<Reference Include="nanoFramework.UnitTestLauncher">
5356
<HintPath>..\packages\nanoFramework.TestFramework.3.0.77\lib\nanoFramework.UnitTestLauncher.exe</HintPath>
5457
</Reference>
5558
<Reference Include="System.IO.Streams, Version=1.1.94.0, Culture=neutral, PublicKeyToken=c07d481e9758c731">

NFUnitTest/nano.runsettings

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<TargetPlatform>x64</TargetPlatform>
99
</RunConfiguration>
1010
<nanoFrameworkAdapter>
11-
<Logging>Detailed</Logging> <!--Set to the desired level of logging for Unit Test execution. Possible values are: None, Detailed, Verbose, Error. -->
11+
<Logging>None</Logging> <!--Set to the desired level of logging for Unit Test execution. Possible values are: None, Detailed, Verbose, Error. -->
1212
<IsRealHardware>False</IsRealHardware><!--Set to true to run tests on real hardware. -->
1313
<RealHardwarePort>COM3</RealHardwarePort><!--Specify the COM port to use to connect to a nanoDevice. If none is specified, a device detection is performed and the 1st available one will be used. -->
1414
<CLRVersion></CLRVersion><!--Specify the nanoCLR version to use. If not specified, the latest available will be used. -->

nanoFramework.MessagePack.Net/nanoFramework.MessagePack.Net.csproj

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
<TargetFramework>net9.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
7+
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
8+
<RestoreLockedMode Condition="'$(TF_BUILD)' == 'True' or '$(ContinuousIntegrationBuild)' == 'True'">true</RestoreLockedMode>
79
</PropertyGroup>
810

911
<Import Project="..\Shared\MessagePack\MessagePack.projitems" Label="Shared" />

nanoFramework.MessagePack.Net/packages.lock.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
"dependencies": {
44
"net9.0": {}
55
}
6-
}
6+
}

0 commit comments

Comments
 (0)