Skip to content

Commit

Permalink
another attempt to make it work
Browse files Browse the repository at this point in the history
  • Loading branch information
razzmatazz committed Apr 7, 2019
1 parent 68e7ff5 commit d64f8c8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
10 changes: 7 additions & 3 deletions Dockerfile.testing
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@ FROM microsoft/dotnet:2.2-sdk

WORKDIR /usr/src

# Install dependencies
# We need mono for now as it provides msbuild-16x which is used by omnisharp-roslyn on linux for our test project
RUN apt-get update \
&& apt-get install -y git emacs24-nox wget curl make \
&& apt-get install -y apt-transport-https dirmngr gnupg ca-certificates \
&& apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \
&& (echo "deb https://download.mono-project.com/repo/debian stable-stretch main" | tee /etc/apt/sources.list.d/mono-official-stable.list) \
&& apt-get update \
&& apt-get install -y git emacs24-nox wget curl make mono-devel \
&& rm -rf /var/lib/apt/lists/*

# Install Cask
Expand All @@ -13,7 +17,7 @@ ENV PATH /root/.cask/bin:$PATH

# Install sample project's dependencies
COPY test/MinimalProject test/MinimalProject
RUN (cd ./test/MinimalProject && dotnet restore)
RUN (cd ./test/MinimalProject && dotnet build)

# Install omnisharp and it's dependency packages via Cask
COPY Cask Cask
Expand Down
1 change: 0 additions & 1 deletion test/MinimalProject/MinimalProject.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>
<AssemblyName>MinimalProject</AssemblyName>
Expand Down
12 changes: 7 additions & 5 deletions test/MinimalProject/MyClass.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
namespace MyNamespace {
public class Class321
using System;

namespace minimal
{
public class MyClass
{
public void Whatever()
public static void Main(string[] args)
{
IPAddress.Parse();
Gu$id.NewGuid();
Console.WriteLine("hello, world");
}
}
}

0 comments on commit d64f8c8

Please sign in to comment.