Skip to content

Commit 7474be1

Browse files
committed
Changing connection string to avoid cross platform issues and updating files to run this app on Gitpod
1 parent f348d03 commit 7474be1

File tree

7 files changed

+31
-5
lines changed

7 files changed

+31
-5
lines changed

.gitpod.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
image:
2+
file: Dockerfile
3+
4+
tasks:
5+
- command : dotnet run
6+
7+
ports:
8+
- port: 5000
9+
onOpen: open-preview

Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM gitpod/workspace-full:latest
2+
3+
USER root
4+
5+
RUN wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb && \
6+
dpkg -i packages-microsoft-prod.deb && rm -rf packages-microsoft-prod.deb && \
7+
add-apt-repository universe && \
8+
apt-get update && apt-get -y -o APT::Install-Suggests="true" install dotnet-sdk-2.2 && \
9+
apt -y clean;

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The **VB6 source code** was upgraded to a C# Windows Forms Desktop app using the
1313

1414
The **C# Windows Forms source code** of this app can be found [here](https://github.com/MobilizeNet/SKSWinForms)
1515

16-
The **C# Windows Forms source code** was upgraded to an [Asp .Net Core](https://dotnet.microsoft.com/learn/aspnet/what-is-aspnet-core) App using our [WebMap product](https://www.mobilize.net/webmap)
16+
The **C# Windows Forms source code** was upgraded to an [Asp .Net Core](https://dotnet.microsoft.com/learn/aspnet/what-is-aspnet-core) App using our [WebMap product](https://www.mobilize.net/webmap). Now you can run this app on any .NET Core platform: Windows, MacOS or Linux.
1717

1818
> NOTE: This app was migrated to .NET Core 2.2. If you haven't installed it just go to: https://dotnet.microsoft.com/download/dotnet-core/2.2
1919
@@ -112,3 +112,11 @@ dotnet run
112112
You should now see a screen like:
113113

114114
![SKSRunning](./Media/SKSAspNetcoreRunning.jpg)
115+
116+
If you do not want to waste a lot of time setting up an environment, you can open this application on [Gitpod](https://gitpod.io).
117+
118+
[Gitpod](https://gitpod.io) is a great company that allows you to get your repo and hosted on a cloud IDE.
119+
120+
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/MobilizeNet/SKSWebMAp)
121+
122+
This is cloud environment that show this migrated application taken all the way from VB6 to a dockerized Linux container :)

frmCustomers.Designer.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frmProducts.Designer.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frmProviders.Designer.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modMain.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public static void Main()
6262
{
6363
Stub._System.Windows.Forms.Application.EnableVisualStyles();
6464
Stub._System.Windows.Forms.Application.SetCompatibleTextRenderingDefault(false);
65-
ConnectionString = @"Data Source=.\Orders.db;Version=3;";
65+
ConnectionString = @"Data Source=Orders.db;Version=3;";
6666

6767
modConnection.OpenConnection();
6868
CurrentUserAdmin = true;

0 commit comments

Comments
 (0)