Skip to content

Commit

Permalink
Migrate solution to VS2022
Browse files Browse the repository at this point in the history
- Add ref to System.Text.
- Add missing license from source files.
  • Loading branch information
josesimoes committed Feb 28, 2025
1 parent 4f66069 commit 3cae0b8
Show file tree
Hide file tree
Showing 16 changed files with 49 additions and 22 deletions.
4 changes: 3 additions & 1 deletion samples/NumberParser/DesktopNumberParserTest/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System;
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using System.Globalization;
using System.Threading;
using NumberParserTestShared;
Expand Down
13 changes: 6 additions & 7 deletions samples/NumberParser/NumberParser.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.28307.645
# Visual Studio Version 17
VisualStudioVersion = 17.12.35728.132 d17.12
MinimumVisualStudioVersion = 10.0.40219.1
Project("{11A8DD76-328B-46DF-9F39-F559912D0360}") = "NumberParserTest", "NumberParserTest\NumberParserTest.nfproj", "{2A5794EF-77E7-41A9-8BC6-1077DB0499FE}"
EndProject
Expand All @@ -10,10 +9,6 @@ EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DesktopNumberParserTest", "DesktopNumberParserTest\DesktopNumberParserTest.csproj", "{B7FEF664-44B1-4E33-8F16-8D5B6DA7A11D}"
EndProject
Global
GlobalSection(SharedMSBuildProjectFiles) = preSolution
NumberParserTestShared\NumberParserTestShared.projitems*{b7fef664-44b1-4e33-8f16-8d5b6da7a11d}*SharedItemsImports = 4
NumberParserTestShared\NumberParserTestShared.projitems*{e98bce69-4c45-4d98-b38e-c3ed8c04efff}*SharedItemsImports = 13
EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
Expand All @@ -36,4 +31,8 @@ Global
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {EF479E2C-EBB5-428D-82AD-B1DB9016B61B}
EndGlobalSection
GlobalSection(SharedMSBuildProjectFiles) = preSolution
NumberParserTestShared\NumberParserTestShared.projitems*{b7fef664-44b1-4e33-8f16-8d5b6da7a11d}*SharedItemsImports = 4
NumberParserTestShared\NumberParserTestShared.projitems*{e98bce69-4c45-4d98-b38e-c3ed8c04efff}*SharedItemsImports = 13
EndGlobalSection
EndGlobal
3 changes: 3 additions & 0 deletions samples/NumberParser/NumberParserTest/NumberParserTest.nfproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
<HintPath>..\packages\nanoFramework.CoreLibrary.1.17.1\lib\mscorlib.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="nanoFramework.System.Text">
<HintPath>..\packages\nanoFramework.System.Text.1.3.29\lib\nanoFramework.System.Text.dll</HintPath>
</Reference>
</ItemGroup>
<Import Project="..\NumberParserTestShared\NumberParserTestShared.projitems" Label="Shared" />
<Import Project="$(NanoFrameworkProjectSystemPath)NFProjectSystem.CSharp.targets" Condition="Exists('$(NanoFrameworkProjectSystemPath)NFProjectSystem.CSharp.targets')" />
Expand Down
1 change: 1 addition & 0 deletions samples/NumberParser/NumberParserTest/packages.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="nanoFramework.CoreLibrary" version="1.17.1" targetFramework="netnano1.0" />
<package id="nanoFramework.System.Text" version="1.3.29" targetFramework="netnano1.0" />
</packages>
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using System;
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using System;
using System.Text;

namespace NumberParserTestShared
Expand Down
3 changes: 2 additions & 1 deletion samples/NumberParser/NumberParserTestShared/TestBase.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

namespace NumberParserTestShared
{
Expand Down
5 changes: 4 additions & 1 deletion samples/NumberParser/NumberParserTestShared/TestByte.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using System;
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using System;

namespace NumberParserTestShared
{
Expand Down
6 changes: 4 additions & 2 deletions samples/NumberParser/NumberParserTestShared/TestDouble.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
using System;
using System.Text;
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using System;

namespace NumberParserTestShared
{
Expand Down
6 changes: 4 additions & 2 deletions samples/NumberParser/NumberParserTestShared/TestFloat.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
using System;
using System.Text;
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using System;

namespace NumberParserTestShared
{
Expand Down
3 changes: 2 additions & 1 deletion samples/NumberParser/NumberParserTestShared/TestInt16.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

namespace NumberParserTestShared
{
Expand Down
3 changes: 2 additions & 1 deletion samples/NumberParser/NumberParserTestShared/TestInt32.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

namespace NumberParserTestShared
{
Expand Down
3 changes: 2 additions & 1 deletion samples/NumberParser/NumberParserTestShared/TestInt64.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

namespace NumberParserTestShared
{
Expand Down
5 changes: 4 additions & 1 deletion samples/NumberParser/NumberParserTestShared/TestSByte.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using System;
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using System;

namespace NumberParserTestShared
{
Expand Down
5 changes: 4 additions & 1 deletion samples/NumberParser/NumberParserTestShared/TestUInt16.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using System;
using System;// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.



namespace NumberParserTestShared
{
Expand Down
3 changes: 2 additions & 1 deletion samples/NumberParser/NumberParserTestShared/TestUInt32.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

namespace NumberParserTestShared
{
Expand Down
3 changes: 2 additions & 1 deletion samples/NumberParser/NumberParserTestShared/TestUInt64.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

namespace NumberParserTestShared
{
Expand Down

0 comments on commit 3cae0b8

Please sign in to comment.