Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolves: Add GitHub Codespaces configuration #608

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM mcr.microsoft.com/vscode/devcontainers/dotnet:0.201.7-5.0

# Install Mono for running tests
RUN sudo apt install gnupg ca-certificates && \
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF && \
echo "deb https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list && \
sudo apt update && \
sudo apt install -y mono-complete

# Built with ❤ by [Pipeline Foundation](https://pipeline.foundation)
27 changes: 27 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "OpenAPI.NET Codespace",
"settings": {
"workbench.colorTheme": "Default Dark+",
"terminal.integrated.defaultProfile.linux": "pwsh"
},
"extensions": [
"eamodio.gitlens",
"ms-dotnettools.csharp",
"VisualStudioExptTeam.vscodeintellicode",
"ms-vscode.powershell",
"cschleiden.vscode-github-actions",
"redhat.vscode-yaml",
"bierner.markdown-preview-github-styles",
"ban.spellright",
"jmrog.vscode-nuget-package-manager",
"coenraads.bracket-pair-colorizer",
"vscode-icons-team.vscode-icons",
"editorconfig.editorconfig"
],
"postCreateCommand": "dotnet restore ./Microsoft.OpenApi.sln",
"build": {
"dockerfile": "Dockerfile"
}
}

// Built with ❤ by [Pipeline Foundation](https://pipeline.foundation)
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\src\Microsoft.OpenApi.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.TestPlatform.ObjectModel" Version="15.0.0" Condition="$(TargetFramework.StartsWith('net4')) AND '$(OS)' == 'Unix'" />
</ItemGroup>
<ItemGroup>
<None Remove="V2Tests\Samples\ComponentRootReference.json" />
<None Remove="V3Tests\Samples\OpenApiWorkspace\TodoComponents.yaml" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<OutputType>Library</OutputType>
<AssemblyOriginatorKeyFile>..\..\src\Microsoft.OpenApi.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.TestPlatform.ObjectModel" Version="15.0.0" Condition="$(TargetFramework.StartsWith('net4')) AND '$(OS)' == 'Unix'" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.4" />
<PackageReference Include="FluentAssertions" Version="5.10.3" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
Expand Down