Skip to content

Commit

Permalink
Merge pull request #13 from mcneel/curtis/vs-mac-2022-support
Browse files Browse the repository at this point in the history
Add VS for Mac 2022 support
  • Loading branch information
cwensley authored Aug 22, 2022
2 parents 65ca9fd + 9cfc535 commit fa54f08
Show file tree
Hide file tree
Showing 66 changed files with 991 additions and 1,012 deletions.
32 changes: 24 additions & 8 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,41 @@
"version": "0.2.0",
"configurations": [
{
"name": "Mac",
"name": "Rhino.VisualStudio.Mac.2019",
"type": "mono",
"request": "launch",
"preLaunchTask": "build-mac",
"program": "/Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/bin/VisualStudio.exe",
"preLaunchTask": "build-2019",
"program": ".",
"runtimeExecutable": "/Applications/Visual Studio (2019).app/Contents/MacOS/VisualStudio",
"passDebugOptionsViaEnvironmentVariable": true,
"args": [
"--no-redirect"
],
"env": {
"MONODEVELOP_CONSOLE_LOG_LEVEL": "All",
"MONODEVELOP_DEV_ADDINS": "${workspaceFolder}/artifacts/bin/Rhino.VisualStudio.Mac/Debug/net472/"
"MONODEVELOP_DEV_ADDINS": "${workspaceFolder}/artifacts/bin/Rhino.VisualStudio.Mac/2019/${config:var.configuration}/"
}
},
{
"name": "Windows 2019",
"name": "Rhino.VisualStudio.Mac.2022",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build-2022",
"program": "/Applications/Visual Studio.app/Contents/MacOS/VisualStudio",
"args": [
"--no-redirect"
],
"env": {
"MONODEVELOP_CONSOLE_LOG_LEVEL": "All",
"MONODEVELOP_DEV_ADDINS": "${workspaceFolder}/artifacts/bin/Rhino.VisualStudio.Mac/2022/${config:var.configuration}/"
},
"justMyCode": false
},
{
"name": "Rhino.VisualStudio.Windows.2019",
"type": "clr",
"request": "launch",
"preLaunchTask": "build-windows-2019",
"preLaunchTask": "build-2019",
"program": "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\Common7\\IDE\\devenv.exe",
// "targetArchitecture": "x86",
"args": [
Expand All @@ -32,10 +48,10 @@
],
},
{
"name": "Windows 2022",
"name": "Rhino.VisualStudio.Windows.2022",
"type": "clr",
"request": "launch",
"preLaunchTask": "build-windows-2022",
"preLaunchTask": "build-2022",
"program": "C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\Common7\\IDE\\devenv.exe",
// "targetArchitecture": "x86",
"args": [
Expand Down
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"omnisharp.defaultLaunchSolution": "Rhino.VisualStudio.Mac.sln",
"var": {
"configuration" : "Debug",
"buildProperties" : "/v:Minimal /p:GenerateFullPaths=True /consoleLoggerParameters:NoSummary"
},
}
253 changes: 129 additions & 124 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,130 +1,135 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "build-mac",
"type": "shell",
"command": "msbuild",
"args": [
"/restore",
"/v:Minimal",
"/p:Configuration=${input:configuration}",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary",
"${workspaceFolder}/Rhino.VisualStudio.Mac/Rhino.VisualStudio.Mac.csproj"
],
"group": "build",
"presentation": {
"clear": true
},
"problemMatcher": "$msCompile"
},
{
"label": "build-windows-2019",
"type": "shell",
"command": "${input:msbuild2019}",
"args": [
"/restore",
"/v:Minimal",
"/p:Configuration=${input:configuration}",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary",
"${workspaceFolder}/Rhino.VisualStudio.Windows.2019/Rhino.VisualStudio.Windows.2019.csproj"
],
"group": "build",
"presentation": {
"clear": true
},
"problemMatcher": "$msCompile"
},
{
"label": "build-windows-2022",
"type": "shell",
"command": "${input:msbuild2022}",
"args": [
"/restore",
"/v:Minimal",
"/p:Configuration=${input:configuration}",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary",
"${workspaceFolder}/Rhino.VisualStudio.Windows.2022/Rhino.VisualStudio.Windows.2022.csproj"
],
"group": "build",
"presentation": {
"clear": true
},
"problemMatcher": "$msCompile"
},
{
"label": "build-templates",
"type": "shell",
"command": "dotnet",
"args": [
"build",
"/p:Configuration=${input:configuration}",
"/p:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary",
"${workspaceFolder}/Rhino.Templates/Rhino.Templates.csproj"
],
"problemMatcher": "$msCompile",
"presentation": {
"clear": true
}
},
{
"label": "generate-templates",
"type": "shell",
"dependsOn": "build-templates",
"command": "dotnet build ${workspaceFolder}/build/GenerateTemplates.proj",
"problemMatcher": "$msCompile",
"presentation": {
"clear": true
}
},
{
"label": "build-all",
"dependsOn": [
"build-templates",
"build-windows-2019",
"build-windows-2022"
],
"dependsOrder": "sequence",
"problemMatcher": "$msCompile",
"presentation": {
"clear": true
}
}
],
"inputs": [
{
"id": "msbuild2019",
"type": "command",
"command": "shellCommand.execute",
"args": {
"command": "\"%ProgramFiles(x86)%\\Microsoft Visual Studio\\Installer\\vswhere.exe\" -version \"[16,17)\" -latest -products * -requires Microsoft.Component.MSBuild -find MSBuild\\**\\Bin\\MSBuild.exe",
"useFirstResult": "true"
}
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "build-2019",
"type": "shell",
"osx": {
"command": "msbuild",
"args": [
"/restore",
"/v:Minimal",
"/p:VSVersion=2019",
"/bl:${workspaceFolder}/artifacts/log/Rhino.VisualStudio.Mac.2019.binlog",
"${workspaceFolder}/Rhino.VisualStudio.Mac/Rhino.VisualStudio.Mac.csproj",
],
},
"windows": {
"command": "${input:msbuild2019}",
"args": [
"/restore",
"/v:Minimal",
"/p:VSVersion=2019",
"${workspaceFolder}/Rhino.VisualStudio.Windows/Rhino.VisualStudio.Windows.csproj",
],
},
"args": [],
"problemMatcher": "$msCompile",
"presentation": {
"reveal": "always",
"clear": true
},
{
"id": "msbuild2022",
"type": "command",
"command": "shellCommand.execute",
"args": {
"command": "\"%ProgramFiles(x86)%\\Microsoft Visual Studio\\Installer\\vswhere.exe\" -version \"[17,18)\" -latest -products * -requires Microsoft.Component.MSBuild -find MSBuild\\**\\Bin\\MSBuild.exe",
"useFirstResult": "true"
}
"group": "build"
},
{
"label": "build-2022",
"type": "shell",
"osx": {
"command": "dotnet",
"args": [
"build",
"/p:VSVersion=2022",
"/bl:${workspaceFolder}/artifacts/log/Rhino.VisualStudio.Mac.2022.binlog",
"${workspaceFolder}/Rhino.VisualStudio.Mac/Rhino.VisualStudio.Mac.csproj",
],
},
{
"type": "pickString",
"id": "configuration",
"description": "Build Configuration (press escape to continue without building)",
"options": [
"Debug",
"Release"
"windows": {
"command": "${input:msbuild2022}",
"args": [
"/restore",
"/v:Minimal",
"/p:VSVersion=2022",
"${workspaceFolder}/Rhino.VisualStudio.Windows/Rhino.VisualStudio.Windows.csproj",
],
"default": "Debug"
},
"args": [],
"problemMatcher": "$msCompile",
"presentation": {
"reveal": "always",
"clear": true
},
"group": "build"
},
{
"label": "build-templates",
"type": "shell",
"command": "dotnet",
"args": [
"build",
"/p:Configuration=${input:configuration}",
"/p:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary",
"${workspaceFolder}/Rhino.Templates/Rhino.Templates.csproj"
],
"problemMatcher": "$msCompile",
"presentation": {
"clear": true
}
},
{
"label": "generate-templates",
"type": "shell",
"dependsOn": "build-templates",
"command": "dotnet build ${workspaceFolder}/build/GenerateTemplates.proj",
"problemMatcher": "$msCompile",
"presentation": {
"clear": true
}
},
{
"label": "build-all",
"dependsOn": [
"build-templates",
"build-2019",
"build-2022"
],
"dependsOrder": "sequence",
"problemMatcher": "$msCompile",
"presentation": {
"clear": true
}
}
],
"inputs": [
{
"id": "msbuild2019",
"type": "command",
"command": "shellCommand.execute",
"args": {
"command": "\"%ProgramFiles(x86)%\\Microsoft Visual Studio\\Installer\\vswhere.exe\" -version \"[16,17)\" -latest -products * -requires Microsoft.Component.MSBuild -find MSBuild\\**\\Bin\\MSBuild.exe",
"useFirstResult": "true"
}
},
{
"id": "msbuild2022",
"type": "command",
"command": "shellCommand.execute",
"args": {
"command": "\"%ProgramFiles(x86)%\\Microsoft Visual Studio\\Installer\\vswhere.exe\" -version \"[17,18)\" -latest -products * -requires Microsoft.Component.MSBuild -find MSBuild\\**\\Bin\\MSBuild.exe",
"useFirstResult": "true"
}
]
},
{
"type": "pickString",
"id": "configuration",
"description": "Build Configuration (press escape to continue without building)",
"options": [
"Debug",
"Release"
],
"default": "Debug"
}
]
}
9 changes: 6 additions & 3 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<VSVersion Condition="$(VSVersion) == ''">2022</VSVersion>

<BasePath>$(MSBuildThisFileDirectory)</BasePath>
<BaseOutputPath>$(BasePath)artifacts\bin\$(MSBuildProjectName)\</BaseOutputPath>
<BaseIntermediateOutputPath>$(BasePath)artifacts\obj\$(OS)\$(MSBuildProjectName)\</BaseIntermediateOutputPath>
<ArtifactsDir>$(BasePath)artifacts\</ArtifactsDir>
<BaseOutputPath>$(ArtifactsDir)bin\$(MSBuildProjectName)\</BaseOutputPath>
<BaseIntermediateOutputPath>$(ArtifactsDir)obj\$(OS)\$(MSBuildProjectName)\</BaseIntermediateOutputPath>

<Version>7.13.0</Version> <!-- PSST. Hey Curtis. Update Rhino.VisualStudio.Windows\source.extension.vsixmanifest too -->
<Version>7.21.0</Version> <!-- PSST. Hey Curtis. Update Rhino.VisualStudio.Windows\source.extension.vsixmanifest too -->
<PackageVersion>$(Version)</PackageVersion>
</PropertyGroup>
</Project>
2 changes: 1 addition & 1 deletion Rhino.Templates/Rhino.Templates.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
To install the templates in this package, run 'dotnet new --install Rhino.Templates'.
</Description>
<Authors>Robert McNeel and Associates</Authors>
<Copyright>Copyright (c) 1997-2021 Robert McNeel and Associates</Copyright>
<Copyright>Copyright (c) 1997-2022 Robert McNeel and Associates</Copyright>
<PackageIcon>rhinocommon.png</PackageIcon>
<PackageTags>rhino3d rhino rhinocommon grasshopper</PackageTags>
<PackageProjectUrl>https://developer.rhino3d.com/guides/rhinocommon/</PackageProjectUrl>
Expand Down
Loading

0 comments on commit fa54f08

Please sign in to comment.