Skip to content

Commit

Permalink
Use node20 in devcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
cathalnoonan committed Sep 23, 2023
1 parent 1b28662 commit f43c800
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 29 deletions.
51 changes: 25 additions & 26 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,28 @@
{
"image": "mcr.microsoft.com/devcontainers/javascript-node:18-bullseye",
"features": {
"ghcr.io/devcontainers/features/dotnet:1": {
"version": "6"
}
},
"customizations": {
"vscode": {
"extensions": [
"eamodio.gitlens",
"editorconfig.editorconfig",
"streetsidesoftware.code-spell-checker"
]
}
},
"remoteEnv": {
"DOTNET_NOLOGO": "1",
"image": "mcr.microsoft.com/devcontainers/javascript-node:20-bookworm",
"features": {
"ghcr.io/devcontainers/features/dotnet:2": {
"version": "6.0"
}
},
"customizations": {
"vscode": {
"extensions": [
"eamodio.gitlens",
"editorconfig.editorconfig",
"streetsidesoftware.code-spell-checker"
]
}
},
"remoteEnv": {
"DOTNET_NOLOGO": "1",

// https://github.com/microsoft/powerplatform-vscode/issues/139
"DOTNET_ROLL_FORWARD": "Major"
},
"mounts": [
// Mount a volume for the node_modules, it improves performance significantly
"source=${localWorkspaceFolderBasename}-node_modules,target=${containerWorkspaceFolder}/control/node_modules,type=volume"
],
"forwardPorts": [ 8181 ],
"postCreateCommand": "sudo chown -R $USER:$USER ./ && dotnet restore"
// https://github.com/microsoft/powerplatform-vscode/issues/139
"DOTNET_ROLL_FORWARD": "Major"
},
"mounts": [
// Mount a volume for the node_modules, it improves performance significantly
"source=${localWorkspaceFolderBasename}-node_modules,target=${containerWorkspaceFolder}/control/node_modules,type=volume"
],
"forwardPorts": [8181]
}
2 changes: 1 addition & 1 deletion control/control.pcfproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Sdk Name="Cathal.PcfTools.MSBuild.Control" Version="0.1.9" />
<Sdk Name="Cathal.PcfTools.MSBuild.Control" Version="0.1.10" />
<PropertyGroup>
<PowerAppsTargetsPath>$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\PowerApps</PowerAppsTargetsPath>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion d365-pcf-imagecontrol.proj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Sdk Name="Cathal.PcfTools.MSBuild.Proj" Version="0.1.9" />
<Sdk Name="Cathal.PcfTools.MSBuild.Proj" Version="0.1.10" />
</Project>
2 changes: 1 addition & 1 deletion solution/solution.cdsproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Sdk Name="Cathal.PcfTools.MSBuild.Solution" Version="0.1.9" />
<Sdk Name="Cathal.PcfTools.MSBuild.Solution" Version="0.1.10" />
<PropertyGroup>
<PowerAppsTargetsPath>$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\PowerApps</PowerAppsTargetsPath>
</PropertyGroup>
Expand Down

0 comments on commit f43c800

Please sign in to comment.