diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fce99f88..d93607eb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,20 +4,20 @@ on: push: branches: - develop - - release_7* + - release_* tags: - v* pull_request: branches: - develop - - release_7* + - release_* jobs: build: name: Build - runs-on: windows-2019 - # info about windows-2019 https://github.com/actions/virtual-environments/blob/master/images/win/Windows2019-Readme.md + runs-on: windows-latest + # info about windows-latest https://github.com/actions/runner-images env: DROP_DIR: drop steps: diff --git a/README.md b/README.md index 7a4f0d2f..174401fa 100644 --- a/README.md +++ b/README.md @@ -10,9 +10,9 @@ For more Service Fabric open source projects, visit the Service Fabric [home rep ## Getting Started ### Prerequesites -Each project is a normal C# Visual Studio 2019 project. At minimum, you need [MSBuild 16](https://docs.microsoft.com/visualstudio/msbuild/whats-new-msbuild-16-0), [PowerShell](https://msdn.microsoft.com/powershell/mt173057.aspx), [.NET Core SDK](https://www.microsoft.com/net/download/windows) and [.NET Framework 4.6](https://www.microsoft.com/en-US/download/details.aspx?id=48130) to build and generate NuGet packages. +Each project is a normal C# Visual Studio 2022 project. At minimum, you need [MSBuild 17](https://learn.microsoft.com/en-us/visualstudio/msbuild/whats-new-msbuild-17-0?view=vs-2022), [PowerShell](https://msdn.microsoft.com/powershell/mt173057.aspx), [.NET 6 SDK](https://dotnet.microsoft.com/download/dotnet/6.0) and [.NET Framework 4.6](https://www.microsoft.com/en-US/download/details.aspx?id=48130) to build and generate NuGet packages. -We recommend installing [Visual Studio 2019](https://www.visualstudio.com/vs/) which will set you up with all the .NET build tools and allow you to open the solution files. Community Edition is free and can be used to build everything here. +We recommend installing [Visual Studio 2022](https://www.visualstudio.com/vs/) which will set you up with all the .NET build tools and allow you to open the solution files. Community Edition is free and can be used to build everything here. ### Build To build everything and generate NuGet packages, run the **build.ps1** script. NuGet packages and PowerShell module will be dropped in a *drop* directory at the repo root. diff --git a/build.ps1 b/build.ps1 index 245d5e4e..71834393 100644 --- a/build.ps1 +++ b/build.ps1 @@ -12,7 +12,7 @@ param #Options are: # RebuildAll: Clean, Build all .csproj and Generate Nuget Packages. This is the default option. # BuildAll: Build all .csproj and Generate Nuget Packages. - # BuildCode: Builds code, doesn't generates nuget packages. + # BuildCode: Builds code, doesn't generates nuget packages. # GeneratePackages: Generates nuget packages, this target doesn't builds code, build must be done using BuildCode target before invoking this target. [ValidateSet('Rebuildall', 'BuildAll', 'BuildCode', 'GeneratePackages')] [string]$Target = "RebuildAll", @@ -33,36 +33,31 @@ if($MSBuildFullPath -ne "") } } -# msbuild path not provided, find msbuild for VS2019 +# msbuild path not provided, find msbuild for VS2022 if($MSBuildFullPath -eq "") { - if (Test-Path "env:\ProgramFiles(x86)") + $progFilesPaths = ${env:\ProgramFiles(x86)}, ${env:\ProgramFiles} + foreach ($progFilesPath in $progFilesPaths) { - $progFilesPath = ${env:ProgramFiles(x86)} - } - elseif (Test-Path "env:\ProgramFiles") - { - $progFilesPath = ${env:ProgramFiles} - } - - $VS2019InstallPath = join-path $progFilesPath "Microsoft Visual Studio\2019" - $versions = 'Community', 'Professional', 'Enterprise' + $VS2022InstallPath = join-path $progFilesPath "Microsoft Visual Studio\2022" + $versions = 'Preview', 'Community', 'Professional', 'Enterprise' - foreach ($version in $versions) - { - $VS2019VersionPath = join-path $VS2019InstallPath $version - $MSBuildFullPath = join-path $VS2019VersionPath "MSBuild\Current\Bin\MSBuild.exe" - - if (Test-Path $MSBuildFullPath) + foreach ($version in $versions) { - break + $VS2022VersionPath = join-path $VS2022InstallPath $version + $testPath = join-path $VS2022VersionPath "MSBuild\Current\Bin\MSBuild.exe" + + if (Test-Path $testPath) + { + $MSBuildFullPath = $testPath + } } } } -if (!(Test-Path $MSBuildFullPath)) +if (($MSBuildFullPath -eq "") -or !(Test-Path $MSBuildFullPath)) { - throw "Unable to find MSBuild installed on this machine. Please install Visual Studio 2019 or if its installed at non-default location, provide the full ppath to msbuild using -MSBuildFullPath parameter." + throw "Unable to find MSBuild installed on this machine. Please install Visual Studio 2022 or if its installed at non-default location, provide the full path to msbuild using -MSBuildFullPath parameter." } diff --git a/nuprojs/Microsoft.ServiceFabric.Client.Http/Microsoft.ServiceFabric.Client.Http.nuproj b/nuprojs/Microsoft.ServiceFabric.Client.Http/Microsoft.ServiceFabric.Client.Http.nuproj index ef32431b..c2b9290d 100644 --- a/nuprojs/Microsoft.ServiceFabric.Client.Http/Microsoft.ServiceFabric.Client.Http.nuproj +++ b/nuprojs/Microsoft.ServiceFabric.Client.Http/Microsoft.ServiceFabric.Client.Http.nuproj @@ -6,6 +6,7 @@ Microsoft.ServiceFabric.Client.Http This package contains the reference assemblies for connecting to Service Fabric cluster over Http and performing operations to create and manage micro-services. This package contains the reference assemblies for connecting to Service Fabric cluster over Http and performing operations to create and manage micro-services. + v4.8.1 diff --git a/nuprojs/SF.ClientLib.Internal/SF.ClientLib.Internal.nuproj b/nuprojs/SF.ClientLib.Internal/SF.ClientLib.Internal.nuproj index d370c556..90fc6f59 100644 --- a/nuprojs/SF.ClientLib.Internal/SF.ClientLib.Internal.nuproj +++ b/nuprojs/SF.ClientLib.Internal/SF.ClientLib.Internal.nuproj @@ -9,6 +9,7 @@ This package provides Service Fabric Actors and Services libraries for consumption by other Service Fabric repos. ServiceFabric Microsoft Azure Fabric true + v4.8.1 diff --git a/nuprojs/SF.ClientLib.Sfx.Internal/SF.ClientLib.Sfx.Internal.nuproj b/nuprojs/SF.ClientLib.Sfx.Internal/SF.ClientLib.Sfx.Internal.nuproj index 621c8add..4a0d38b8 100644 --- a/nuprojs/SF.ClientLib.Sfx.Internal/SF.ClientLib.Sfx.Internal.nuproj +++ b/nuprojs/SF.ClientLib.Sfx.Internal/SF.ClientLib.Sfx.Internal.nuproj @@ -9,6 +9,7 @@ This package provides Service Fabric Actors and Services libraries for consumption by other Service Fabric repos. ServiceFabric Microsoft Azure Fabric true + v4.8.1 diff --git a/src/Microsoft.ServiceFabric.Powershell.Http/Microsoft.ServiceFabric.Powershell.Http.csproj b/src/Microsoft.ServiceFabric.Powershell.Http/Microsoft.ServiceFabric.Powershell.Http.csproj index 8570e6ef..29a3c255 100644 --- a/src/Microsoft.ServiceFabric.Powershell.Http/Microsoft.ServiceFabric.Powershell.Http.csproj +++ b/src/Microsoft.ServiceFabric.Powershell.Http/Microsoft.ServiceFabric.Powershell.Http.csproj @@ -9,7 +9,7 @@ netstandard2.0 - + diff --git a/src/netframework/Microsoft.ServiceFabric.Powershell.Http/Microsoft.ServiceFabric.Powershell.Http_netframework.csproj b/src/netframework/Microsoft.ServiceFabric.Powershell.Http/Microsoft.ServiceFabric.Powershell.Http_netframework.csproj index 834a9903..fd3a3027 100644 --- a/src/netframework/Microsoft.ServiceFabric.Powershell.Http/Microsoft.ServiceFabric.Powershell.Http_netframework.csproj +++ b/src/netframework/Microsoft.ServiceFabric.Powershell.Http/Microsoft.ServiceFabric.Powershell.Http_netframework.csproj @@ -45,7 +45,7 @@ - +