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.
- Migrate desktop project to .NET Framework 4.8.
  • Loading branch information
josesimoes committed Feb 28, 2025
1 parent 4f66069 commit bf39573
Show file tree
Hide file tree
Showing 18 changed files with 57 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
<OutputType>Exe</OutputType>
<RootNamespace>DesktopNumberParserTest</RootNamespace>
<AssemblyName>DesktopNumberParserTest</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
Expand Down Expand Up @@ -48,6 +49,9 @@
<ItemGroup>
<WCFMetadata Include="Connected Services\" />
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
</ItemGroup>
<Import Project="..\NumberParserTestShared\NumberParserTestShared.projitems" Label="Shared" />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
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
3 changes: 3 additions & 0 deletions samples/NumberParser/DesktopNumberParserTest/app.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/></startup></configuration>
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 bf39573

Please sign in to comment.