forked from MoonsideGames/FNA-VSCode-Template
build and run x64 + dotnet 5
parent
e66ded02e2
commit
a2529d56c8
|
@ -6,9 +6,9 @@
|
||||||
"type": "clr",
|
"type": "clr",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"preLaunchTask": "Build: Framework Debug",
|
"preLaunchTask": "Build: Framework Debug",
|
||||||
"program": "${workspaceFolder}/ProjectName/bin/Debug/net48/ProjectName.exe",
|
"program": "${workspaceFolder}/ProjectName/bin/Debug/x64/net461/ProjectName.exe",
|
||||||
"args": [],
|
"args": [],
|
||||||
"cwd": "${workspaceFolder}",
|
"cwd": "${workspaceFolder}/ProjectName/bin/Debug/x64/net461",
|
||||||
"console": "integratedTerminal",
|
"console": "integratedTerminal",
|
||||||
"internalConsoleOptions": "neverOpen"
|
"internalConsoleOptions": "neverOpen"
|
||||||
},
|
},
|
||||||
|
@ -17,28 +17,28 @@
|
||||||
"type": "mono",
|
"type": "mono",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"preLaunchTask": "Build: Mono Debug",
|
"preLaunchTask": "Build: Mono Debug",
|
||||||
"program": "${workspaceFolder}/ProjectName/bin/Debug/net48/ProjectName.exe",
|
"program": "${workspaceFolder}/ProjectName/bin/Debug/x64/net461/ProjectName.exe",
|
||||||
"args": [],
|
"args": [],
|
||||||
"env": {
|
"env": {
|
||||||
"LD_LIBRARY_PATH": "${workspaceFolder}/ProjectName/bin/Debug/net48/lib64",
|
"LD_LIBRARY_PATH": "${workspaceFolder}/ProjectName/bin/x64/Debug/net461/lib64",
|
||||||
"DYLD_LIBRARY_PATH": "${workspaceFolder}/ProjectName/bin/Debug/net48/osx"
|
"DYLD_LIBRARY_PATH": "${workspaceFolder}/ProjectName/bin/x64/Debug/net461/osx"
|
||||||
},
|
},
|
||||||
"cwd": "${workspaceFolder}",
|
"cwd": "${workspaceFolder}/ProjectName/bin/Debug/x64/net461",
|
||||||
"console": "integratedTerminal",
|
"console": "integratedTerminal",
|
||||||
"internalConsoleOptions": "neverOpen"
|
"internalConsoleOptions": "neverOpen"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Attach to Core Debugger",
|
"name": "Attach to .NET 5 Debugger",
|
||||||
"type": "coreclr",
|
"type": "coreclr",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"preLaunchTask": "Build: Core Debug",
|
"preLaunchTask": "Build: .NET 5 Debug",
|
||||||
"program": "${workspaceFolder}/ProjectName/bin/Debug/netcoreapp3.1/ProjectName.dll",
|
"program": "${workspaceFolder}/ProjectName/bin/Debug/net5.0/ProjectName.dll",
|
||||||
"args": [],
|
"args": [],
|
||||||
"env": {
|
"env": {
|
||||||
"LD_LIBRARY_PATH": "${workspaceFolder}/ProjectName/bin/Debug/netcoreapp3.1/lib64",
|
"LD_LIBRARY_PATH": "${workspaceFolder}/ProjectName/bin/Debug/net5.0/lib64",
|
||||||
"DYLD_LIBRARY_PATH": "${workspaceFolder}/ProjectName/bin/Debug/netcoreapp3.1/osx"
|
"DYLD_LIBRARY_PATH": "${workspaceFolder}/ProjectName/bin/Debug/net5.0/osx"
|
||||||
},
|
},
|
||||||
"cwd": "${workspaceFolder}/ProjectName/bin/Debug/netcoreapp3.1",
|
"cwd": "${workspaceFolder}/ProjectName/bin/Debug/net5.0",
|
||||||
"console": "integratedTerminal",
|
"console": "integratedTerminal",
|
||||||
"internalConsoleOptions": "neverOpen"
|
"internalConsoleOptions": "neverOpen"
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,7 +26,8 @@
|
||||||
"args": [
|
"args": [
|
||||||
"-restore:True",
|
"-restore:True",
|
||||||
"${workspaceFolder}/ProjectName.Framework.sln",
|
"${workspaceFolder}/ProjectName.Framework.sln",
|
||||||
"-p:Configuration=Release"
|
"-p:Configuration=Release",
|
||||||
|
"-p:Platform=x64"
|
||||||
],
|
],
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"group": {
|
"group": {
|
||||||
|
@ -46,7 +47,7 @@
|
||||||
"LD_LIBRARY_PATH": "./lib64",
|
"LD_LIBRARY_PATH": "./lib64",
|
||||||
"DYLD_LIBRARY_PATH": "./osx"
|
"DYLD_LIBRARY_PATH": "./osx"
|
||||||
},
|
},
|
||||||
"cwd": "${workspaceFolder}/ProjectName/bin/Release/net48"
|
"cwd": "${workspaceFolder}/ProjectName/bin/x64/Release/net461"
|
||||||
},
|
},
|
||||||
"type": "process",
|
"type": "process",
|
||||||
"group": {
|
"group": {
|
||||||
|
@ -75,7 +76,8 @@
|
||||||
"args": [
|
"args": [
|
||||||
"-restore:True",
|
"-restore:True",
|
||||||
"${workspaceFolder}/ProjectName.Framework.sln",
|
"${workspaceFolder}/ProjectName.Framework.sln",
|
||||||
"-p:Configuration=Debug"
|
"-p:Configuration=Debug",
|
||||||
|
"-p:Platform=x64"
|
||||||
],
|
],
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"group": {
|
"group": {
|
||||||
|
@ -95,7 +97,7 @@
|
||||||
"LD_LIBRARY_PATH": "./lib64",
|
"LD_LIBRARY_PATH": "./lib64",
|
||||||
"DYLD_LIBRARY_PATH": "./osx"
|
"DYLD_LIBRARY_PATH": "./osx"
|
||||||
},
|
},
|
||||||
"cwd": "${workspaceFolder}/ProjectName/bin/Debug/net48"
|
"cwd": "${workspaceFolder}/ProjectName/bin/x64/Debug/net461"
|
||||||
},
|
},
|
||||||
"type": "process",
|
"type": "process",
|
||||||
"group": {
|
"group": {
|
||||||
|
@ -119,12 +121,12 @@
|
||||||
"problemMatcher": []
|
"problemMatcher": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "Build & Run: Core Debug",
|
"label": "Build & Run: .NET 5 Debug",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"dependsOrder": "sequence",
|
"dependsOrder": "sequence",
|
||||||
"dependsOn": [
|
"dependsOn": [
|
||||||
"Build: Core Debug",
|
"Build: .NET 5 Debug",
|
||||||
"Run: Core Debug"
|
"Run: .NET 5 Debug"
|
||||||
],
|
],
|
||||||
"group": {
|
"group": {
|
||||||
"kind": "build",
|
"kind": "build",
|
||||||
|
@ -133,12 +135,13 @@
|
||||||
"problemMatcher": []
|
"problemMatcher": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "Build: Core Debug",
|
"label": "Build: .NET 5 Debug",
|
||||||
"command": "dotnet",
|
"command": "dotnet",
|
||||||
"args": [
|
"args": [
|
||||||
"build",
|
"build",
|
||||||
"./ProjectName/ProjectName.Core.csproj",
|
"./ProjectName/ProjectName.Core.csproj",
|
||||||
"-p:SolutionDir=${workspaceFolder}/"
|
"-p:SolutionDir=${workspaceFolder}/",
|
||||||
|
"-p:Platform=x64"
|
||||||
],
|
],
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"group": {
|
"group": {
|
||||||
|
@ -148,7 +151,7 @@
|
||||||
"problemMatcher": []
|
"problemMatcher": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "Run: Core Debug",
|
"label": "Run: .NET 5 Debug",
|
||||||
"command": "dotnet",
|
"command": "dotnet",
|
||||||
"args": [
|
"args": [
|
||||||
"./ProjectName.dll"
|
"./ProjectName.dll"
|
||||||
|
@ -158,7 +161,7 @@
|
||||||
"LD_LIBRARY_PATH": "./lib64",
|
"LD_LIBRARY_PATH": "./lib64",
|
||||||
"DYLD_LIBRARY_PATH": "./osx"
|
"DYLD_LIBRARY_PATH": "./osx"
|
||||||
},
|
},
|
||||||
"cwd": "${workspaceFolder}/ProjectName/bin/Debug/netcoreapp3.1"
|
"cwd": "${workspaceFolder}/ProjectName/bin/x64/Debug/net5.0"
|
||||||
},
|
},
|
||||||
"type": "process",
|
"type": "process",
|
||||||
"group": {
|
"group": {
|
||||||
|
@ -168,14 +171,15 @@
|
||||||
"problemMatcher": []
|
"problemMatcher": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "Build: Core Release",
|
"label": "Build: .NET 5 Release",
|
||||||
"command": "dotnet",
|
"command": "dotnet",
|
||||||
"args": [
|
"args": [
|
||||||
"build",
|
"build",
|
||||||
"./ProjectName/ProjectName.Core.csproj",
|
"./ProjectName/ProjectName.Core.csproj",
|
||||||
"--configuration",
|
"--configuration",
|
||||||
"Release",
|
"Release",
|
||||||
"-p:SolutionDir=${workspaceFolder}/"
|
"-p:SolutionDir=${workspaceFolder}/",
|
||||||
|
"-p:Platform=x64"
|
||||||
],
|
],
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"group": {
|
"group": {
|
||||||
|
@ -185,7 +189,7 @@
|
||||||
"problemMatcher": []
|
"problemMatcher": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "Run: Core Release",
|
"label": "Run: .NET 5 Release",
|
||||||
"command": "dotnet",
|
"command": "dotnet",
|
||||||
"args": [
|
"args": [
|
||||||
"./ProjectName.dll"
|
"./ProjectName.dll"
|
||||||
|
@ -195,7 +199,7 @@
|
||||||
"LD_LIBRARY_PATH": "./lib64",
|
"LD_LIBRARY_PATH": "./lib64",
|
||||||
"DYLD_LIBRARY_PATH": "./osx"
|
"DYLD_LIBRARY_PATH": "./osx"
|
||||||
},
|
},
|
||||||
"cwd": "${workspaceFolder}/ProjectName/bin/Release/netcoreapp3.1"
|
"cwd": "${workspaceFolder}/ProjectName/bin/x64/Release/net5.0"
|
||||||
},
|
},
|
||||||
"type": "process",
|
"type": "process",
|
||||||
"group": {
|
"group": {
|
||||||
|
@ -205,11 +209,11 @@
|
||||||
"problemMatcher": []
|
"problemMatcher": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "Build & Run: Core Release",
|
"label": "Build & Run: .NET 5 Release",
|
||||||
"dependsOrder": "sequence",
|
"dependsOrder": "sequence",
|
||||||
"dependsOn": [
|
"dependsOn": [
|
||||||
"Build: Core Release",
|
"Build: .NET 5 Release",
|
||||||
"Run: Core Release"
|
"Run: .NET 5 Release"
|
||||||
],
|
],
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"group": {
|
"group": {
|
||||||
|
@ -238,7 +242,7 @@
|
||||||
"label": "Run: Framework Debug",
|
"label": "Run: Framework Debug",
|
||||||
"command": "ProjectName.exe",
|
"command": "ProjectName.exe",
|
||||||
"options": {
|
"options": {
|
||||||
"cwd": "${workspaceFolder}/ProjectName/bin/Debug/net48"
|
"cwd": "${workspaceFolder}/ProjectName/bin/x64/Debug/net461"
|
||||||
},
|
},
|
||||||
"type": "process",
|
"type": "process",
|
||||||
"group": {
|
"group": {
|
||||||
|
@ -281,7 +285,7 @@
|
||||||
"label": "Run: Framework Release",
|
"label": "Run: Framework Release",
|
||||||
"command": "ProjectName.exe",
|
"command": "ProjectName.exe",
|
||||||
"options": {
|
"options": {
|
||||||
"cwd": "${workspaceFolder}/ProjectName/bin/Release/net48"
|
"cwd": "${workspaceFolder}/ProjectName/bin/x64/Release/net461"
|
||||||
},
|
},
|
||||||
"type": "process",
|
"type": "process",
|
||||||
"group": {
|
"group": {
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<Import Sdk="Microsoft.NET.Sdk" Project="Sdk.props" />
|
<Import Sdk="Microsoft.NET.Sdk" Project="Sdk.props" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>WinExe</OutputType>
|
<OutputType>WinExe</OutputType>
|
||||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
<TargetFramework>net5.0</TargetFramework>
|
||||||
<TargetName>ProjectName</TargetName>
|
<TargetName>ProjectName</TargetName>
|
||||||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
||||||
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
|
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<Import Sdk="Microsoft.NET.Sdk" Project="Sdk.props" />
|
<Import Sdk="Microsoft.NET.Sdk" Project="Sdk.props" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>net48</TargetFramework>
|
<TargetFramework>net461</TargetFramework>
|
||||||
<TargetName>ProjectName</TargetName>
|
<TargetName>ProjectName</TargetName>
|
||||||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
||||||
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
|
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
|
||||||
|
|
12
README.md
12
README.md
|
@ -1,18 +1,20 @@
|
||||||
# FNA-VSCode-Template
|
# FNA-VSCode-Template
|
||||||
|
|
||||||
Template and build tasks for developing a cross-platform multi-target .NET Framework, Mono, and .NET Core FNA project in VSCode.
|
Template and build tasks for developing a cross-platform multi-target .NET Framework, Mono, and .NET 5 FNA project in VSCode.
|
||||||
|
|
||||||
|
The generated solution file will also work in regular Visual Studio.
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
- Includes project boilerplate code
|
- Includes project boilerplate code
|
||||||
- Build tasks for both .NET Framework, Mono, and .NET Core side by side
|
- Build tasks for both .NET Framework, Mono, and .NET 5 side by side
|
||||||
- VSCode debugger integration
|
- VSCode debugger integration
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
- [Git](https://git-scm.com/) or [Git for Windows](https://gitforwindows.org/) on Windows
|
- [Git](https://git-scm.com/) or [Git for Windows](https://gitforwindows.org/) on Windows
|
||||||
- [.NET Core SDK](https://dotnet.microsoft.com/download/dotnet-core)
|
- [.NET 5 SDK](https://dotnet.microsoft.com/download/dotnet/5.0)
|
||||||
- [.NET Framework 4.8 SDK](https://dotnet.microsoft.com/download/visual-studio-sdks) on Windows
|
- [.NET Framework 4.6.1 Developer Pack](https://dotnet.microsoft.com/download/dotnet-framework/net461) on Windows
|
||||||
- [Build Tools for Visual Studio 2019](https://visualstudio.microsoft.com/downloads/) on Windows
|
- [Build Tools for Visual Studio 2019](https://visualstudio.microsoft.com/downloads/) on Windows
|
||||||
- [Mono](https://www.mono-project.com/) on OSX or Linux
|
- [Mono](https://www.mono-project.com/) on OSX or Linux
|
||||||
- [Visual Studio Code](https://code.visualstudio.com/)
|
- [Visual Studio Code](https://code.visualstudio.com/)
|
||||||
|
@ -33,7 +35,7 @@ Template and build tasks for developing a cross-platform multi-target .NET Frame
|
||||||
- Press Ctrl-Shift-B to open the build tasks menu
|
- Press Ctrl-Shift-B to open the build tasks menu
|
||||||
- `Framework` tasks use .NET Framework to build and run (Windows only)
|
- `Framework` tasks use .NET Framework to build and run (Windows only)
|
||||||
- `Mono` tasks use Mono to build and run
|
- `Mono` tasks use Mono to build and run
|
||||||
- `Core` tasks use .NET Core to build and run
|
- `5` tasks use .NET 5 to build and run
|
||||||
- Press F5 to build and debug
|
- Press F5 to build and debug
|
||||||
|
|
||||||
## Acknowledgments
|
## Acknowledgments
|
||||||
|
|
Loading…
Reference in New Issue