Skip to content

Commit d5d025f

Browse files
Support ARM64 debug (#71)
* Support ARM64 debug * dotnet 3.0 * test project to dotnet3.0 * Fix test case
1 parent 34be6b2 commit d5d025f

File tree

6 files changed

+29
-4
lines changed

6 files changed

+29
-4
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
language: csharp
2-
dotnet: 2.1
2+
dotnet: 3.0
33
mono: alpha
44
before_install:
55
- mkdir -p .nuget

Microsoft.Azure.IoT.Edge.Module.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package>
33
<metadata>
44
<id>Microsoft.Azure.IoT.Edge.Module</id>
5-
<version>3.0.0-alpha</version>
5+
<version>3.1.0-alpha-rc</version>
66
<title>Azure IoT Edge Module</title>
77
<authors>Microsoft</authors>
88
<owners>microsoft, nugetazureiotedge</owners>

Test/Test.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public void TestArchitecture(string lang, bool skipRestore)
6868

6969
if (lang == CSharp)
7070
{
71-
filesToCheck.AddRange(new List<string> { "Program.cs", scaffoldName + ".csproj" });
71+
filesToCheck.AddRange(new List<string> { "Program.cs", scaffoldName + ".csproj", "Dockerfile.arm64v8.debug" });
7272
}
7373
if (lang == FSharp)
7474
{

Test/Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp2.0</TargetFramework>
4+
<TargetFramework>netcoreapp3.0</TargetFramework>
55
</PropertyGroup>
66

77
<ItemGroup>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
FROM mcr.microsoft.com/dotnet/core/runtime:3.0-buster-slim-arm64v8 AS base
2+
3+
RUN apt-get update && \
4+
apt-get install -y --no-install-recommends unzip procps && \
5+
rm -rf /var/lib/apt/lists/*
6+
7+
RUN useradd -ms /bin/bash moduleuser
8+
USER moduleuser
9+
RUN curl -sSL https://aka.ms/getvsdbgsh | bash /dev/stdin -v latest -l ~/vsdbg
10+
11+
FROM mcr.microsoft.com/dotnet/core/sdk:3.0-buster-arm64v8 AS build-env
12+
WORKDIR /app
13+
14+
COPY *.csproj ./
15+
RUN dotnet restore
16+
17+
COPY . ./
18+
RUN dotnet publish -c Debug -o out
19+
20+
FROM base
21+
WORKDIR /app
22+
COPY --from=build-env /app/out ./
23+
24+
ENTRYPOINT ["dotnet", "SampleModule.dll"]

content/dotnet-template-azure-iot-edge-module/CSharp/module.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"arm32v7": "./Dockerfile.arm32v7",
1212
"arm32v7.debug": "./Dockerfile.arm32v7.debug",
1313
"arm64v8": "./Dockerfile.arm64v8",
14+
"arm64v8.debug": "./Dockerfile.arm64v8.debug",
1415
"windows-amd64": "./Dockerfile.windows-amd64"
1516
}
1617
},

0 commit comments

Comments
 (0)