omnisharp-vscode offline

FROM node:12.20.0-stretch as omnisharp-offline

RUN git clone --depth 1 https://github.com/OmniSharp/omnisharp-vscode.git /app
WORKDIR /app

RUN git checkout v1.23.7
RUN npm i && \
npm_package_engines_vscode="^1.44.0" node ./node_modules/vscode/bin/install && \
npm run compile && \
npm run gulp vsix:offline:package && \
rm -rf node_modules && \
rm -rf .razor && \
rm -rf .debugger && \
rm -rf .omnisharp
FROM ubuntu:latest

COPY --
from=omnisharp-offline /app/csharp.1.23.7-linux-x86_64.vsix /tmp/csharp.1.23.7-linux-x86_64.vsix
COPY --from=omnisharp-offline /app/csharp.1.23.7-darwin-x86_64.vsix /tmp/csharp.1.23.7-darwin-x86_64.vsix
COPY --from=omnisharp-offline /app/csharp.1.23.7-win32-x86_64.vsix /tmp/csharp.1.23.7-win32-x86_64.vsix

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store