diff --git a/Abc.MoqComplete/Deployment/build_rider_plugin.ps1 b/Abc.MoqComplete/Deployment/build_rider_plugin.ps1 index fa242c3..c4595f3 100644 --- a/Abc.MoqComplete/Deployment/build_rider_plugin.ps1 +++ b/Abc.MoqComplete/Deployment/build_rider_plugin.ps1 @@ -1,16 +1,11 @@ $artifactDirectory = $args[0] $PluginId = "Abc.MoqComplete" $BuildPropsFilePath = "Abc.MoqComplete\Directory.Build.props" -$PluginPropsFilePath = "Abc.MoqComplete\Plugin.props" # Get the version number if (Test-Path $BuildPropsFilePath) { - $BuildPropsXml = [xml] (Get-Content $BuildPropsFilePath) - $PluginPropsXml = [xml] (Get-Content $PluginPropsFilePath) - $Version = $BuildPropsXml.SelectSingleNode(".//Project/PropertyGroup/Version").innerText - $SdkVersion = $PluginPropsXml.SelectSingleNode(".//Project/PropertyGroup/SdkVersion").innerText - Write-Host "Version is $Version SdkVersion is $SdkVersion" - $Version = $Version.Replace("`$(SdkVersion)", $SdkVersion) + $PluginXml = [xml] (Get-Content $BuildPropsFilePath) + $Version = $PluginXml.SelectSingleNode(".//Project/PropertyGroup/Version").innerText } Write-Host "Generating Rider package" diff --git a/Abc.MoqComplete/Directory.Build.props b/Abc.MoqComplete/Directory.Build.props index 31da5f4..c8c9231 100644 --- a/Abc.MoqComplete/Directory.Build.props +++ b/Abc.MoqComplete/Directory.Build.props @@ -24,7 +24,7 @@ - $(SdkVersion).1 + 2022.3.0.2