FROM debian:9.11
# Wine on Debian 9, see https://wiki.winehq.org/Debian
# Winetricks, see https://wiki.winehq.org/Winetricks#Installing_winetricks
# WINEDEBUG=-all to suppress Wine debug output
# .NET Runtime via Winetricks, install sequence:
# v4.0 on WinXP, v4.5 on Win7, v4.6 on Win2003, v4.6.1 on Win7.
RUN set -x \
&& tempDeps='software-properties-common apt-transport-https gnupg wget curl cabextract' \
&& apt-get update \
&& apt-get install -y --no-install-recommends $tempDeps \
&& dpkg --add-architecture i386 \
&& wget -qO - https://dl.winehq.org/wine-builds/winehq.key | apt-key add - \
&& apt-add-repository https://dl.winehq.org/wine-builds/debian/ \
&& apt-get update \
&& apt-get install -y --no-install-recommends winehq-staging \
&& curl -s https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks > /usr/local/bin/winetricks \
&& chmod +x /usr/local/bin/winetricks \
&& export WINEDEBUG=-all \
&& winetricks -q dotnet461
# .NET Framework 4.6.1 Developer Pack installer requires X server
RUN set -x \
&& apt-get update \
&& apt-get -y install xvfb git \
&& curl -L -o /tmp/ndp461-devpack-kb3105179-enu.exe https://go.microsoft.com/fwlink/?linkid=2099470 \
&& export WINEDEBUG=-all \
&& xvfb-run wine /tmp/ndp461-devpack-kb3105179-enu.exe /q
# Various dev tools
RUN set -x \
&& apt-get update \
&& apt-get -y install vim mc tree less locate procps net-tools
# Compile sample project based on ASP.NET Web Forms
# NuGet <= v4.5.3 works under Wine v4.16 Staging but NuGet v4.6.4+ crashes with Win32Exception
RUN set -x \
&& curl -o /root/.wine/drive_c/windows/syswow64/nuget.exe https://dist.nuget.org/win-x86-commandline/v4.5.3/nuget.exe \
&& git clone https://github.com/TelerikAcademy/ASP.NET-Web-Forms.git /app \
&& cd '/app/02. ASP.NET-Web-Forms-Intro/demos' \
&& export WINEPATH='C:/windows/Microsoft.NET/Framework64/v4.0.30319' \
&& export WINEDEBUG=-all \
&& wine nuget install MSBuild.Microsoft.VisualStudio.Web.targets -Version 14.0.0.3 -OutputDirectory packages \
&& wine msbuild Intro-ASP.NET-Demos.sln \
/p:VSToolsPath=../packages/MSBuild.Microsoft.VisualStudio.Web.targets.14.0.0.3/tools/VSToolsPath
CMD bash
Last active
February 9, 2023 14:21
-
-
Save diyan/e69dcace7ef9fdc8fef917cfd4331997 to your computer and use it in GitHub Desktop.
WORKS. Setup Wine 4.16 Staging, winetricks, .NET 4.6.1 Developer Pack, NuGet. Compile ASP.NET Web Forms Web Site using Wine/MSBuild
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
04ac:err:module:LdrInitializeThunk Importing dlls for L"C:\users\xevilstar\Downloads\nuget.exe" failed, status c0000135
xevilstar@ghost:
/Downloads$ wine64 nuget.exe install chocolatey.1.2.1.nupkg/Downloads$ wine64 /home/xevilstar/Downloads/nuget.exe install chocolatey.1.2.1.nupkg04d8:err:winediag:is_broken_driver Broken NVIDIA RandR detected, falling back to RandR 1.0. Please consider using the Nouveau driver instead.
04d4:err:module:fixup_imports_ilonly mscoree.dll not found, IL-only binary L"nuget.exe" cannot be loaded
04d4:err:module:LdrInitializeThunk Importing dlls for L"Z:\home\xevilstar\Downloads\nuget.exe" failed, status c0000135
xevilstar@ghost:
04e8:err:winediag:is_broken_driver Broken NVIDIA RandR detected, falling back to RandR 1.0. Please consider using the Nouveau driver instead.
04e0:err:module:fixup_imports_ilonly mscoree.dll not found, IL-only binary L"nuget.exe" cannot be loaded
04e0:err:module:LdrInitializeThunk Importing dlls for L"Z:\home\xevilstar\Downloads\nuget.exe" failed, status c0000135
xevilstar@ghost:~/Downloads$ wine64 --version
wine-8.1-57-g6714e32d734 (Staging)