<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Warren Buckley</title>
    <description>The latest articles on DEV Community by Warren Buckley (@warrenbuckley).</description>
    <link>https://dev.to/warrenbuckley</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F39221%2Ffa77e5c2-9071-4c49-b414-ca30f6a989d1.jpeg</url>
      <title>DEV Community: Warren Buckley</title>
      <link>https://dev.to/warrenbuckley</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/warrenbuckley"/>
    <language>en</language>
    <item>
      <title>Coding a .NETCore project on an iPad using Github Codespaces</title>
      <dc:creator>Warren Buckley</dc:creator>
      <pubDate>Tue, 09 Mar 2021 11:37:07 +0000</pubDate>
      <link>https://dev.to/warrenbuckley/coding-a-netcore-project-on-an-ipad-using-github-codespaces-1mbj</link>
      <guid>https://dev.to/warrenbuckley/coding-a-netcore-project-on-an-ipad-using-github-codespaces-1mbj</guid>
      <description>&lt;p&gt;Ever wondered if you could use an iPad to develop C# code for a .NETCore project. Surely thats not possible, how do you run the database server, node and the .NETCore runtime. It just seems impossible.&lt;/p&gt;

&lt;h2&gt;
  
  
  Take a look for yourselves
&lt;/h2&gt;

&lt;p&gt;I work for an &lt;a href="https://umbraco.com/"&gt;open source .NET CMS Umbraco&lt;/a&gt; and I wanted to investigate the snazzy new feature of &lt;a href="https://github.com/features/codespaces"&gt;GitHub Codespaces&lt;/a&gt; and VSCode remote container development.&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/HAWqQiqRRlY"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  Where's the code ?
&lt;/h2&gt;

&lt;p&gt;Well the work in progress PR for the Umbraco CMS repository can be found here - &lt;a href="https://github.com/umbraco/Umbraco-CMS/pull/9835"&gt;https://github.com/umbraco/Umbraco-CMS/pull/9835&lt;/a&gt;&lt;/p&gt;


&lt;div class="ltag_github-liquid-tag"&gt;
  &lt;h1&gt;
    &lt;a href="https://github.com/umbraco/Umbraco-CMS/pull/9835"&gt;
      &lt;img class="github-logo" alt="GitHub logo" src="https://res.cloudinary.com/practicaldev/image/fetch/s--A9-wwsHG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg"&gt;
      &lt;span class="issue-title"&gt;
        .NETCore &amp;amp; SQL Docker Image for Container Isolated Development &amp;amp; GitHub CodeSpaces
      &lt;/span&gt;
      &lt;span class="issue-number"&gt;#9835&lt;/span&gt;
    &lt;/a&gt;
  &lt;/h1&gt;
  &lt;div class="github-thread"&gt;
    &lt;div class="timeline-comment-header"&gt;
      &lt;a href="https://github.com/warrenbuckley"&gt;
        &lt;img class="github-liquid-tag-img" src="https://res.cloudinary.com/practicaldev/image/fetch/s--PF36Xs25--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://avatars.githubusercontent.com/u/1389894%3Fv%3D4" alt="warrenbuckley avatar"&gt;
      &lt;/a&gt;
      &lt;div class="timeline-comment-header-text"&gt;
        &lt;strong&gt;
          &lt;a href="https://github.com/warrenbuckley"&gt;warrenbuckley&lt;/a&gt;
        &lt;/strong&gt; posted on &lt;a href="https://github.com/umbraco/Umbraco-CMS/pull/9835"&gt;&lt;time&gt;Feb 17, 2021&lt;/time&gt;&lt;/a&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="ltag-github-body"&gt;
      &lt;h2&gt;
&lt;span class="octicon octicon-link"&gt;&lt;/span&gt;Resources&lt;/h2&gt;
&lt;p&gt;Below is a mix of documentation and resources that was used for this&lt;/p&gt;
&lt;p&gt;TL:DR Using docker locally with WSL2 on Windows with the VSCode extension Remote Containers gives the same experience as GitHub CodeSpaces.&lt;/p&gt;
&lt;h3&gt;
&lt;span class="octicon octicon-link"&gt;&lt;/span&gt;VSCode Container Docs &amp;amp; tutorials&lt;/h3&gt;
&lt;p&gt;&lt;a href="https://channel9.msdn.com/Series/Beginners-Series-to-Dev-Containers" rel="nofollow"&gt;https://channel9.msdn.com/Series/Beginners-Series-to-Dev-Containers&lt;/a&gt; 📺
&lt;a href="https://channel9.msdn.com/Shows/Tabs-vs-Spaces/Visual-Studio-Code-Remote-dev-with-Containers--Codespaces" rel="nofollow"&gt;https://channel9.msdn.com/Shows/Tabs-vs-Spaces/Visual-Studio-Code-Remote-dev-with-Containers--Codespaces&lt;/a&gt; 📺
&lt;a href="https://code.visualstudio.com/docs/remote/containers" rel="nofollow"&gt;https://code.visualstudio.com/docs/remote/containers&lt;/a&gt;
&lt;a href="https://docs.microsoft.com/en-us/learn/modules/use-docker-container-dev-env-vs-code/" rel="nofollow"&gt;https://docs.microsoft.com/en-us/learn/modules/use-docker-container-dev-env-vs-code/&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
&lt;span class="octicon octicon-link"&gt;&lt;/span&gt;Docker Image &amp;amp; Software Installed&lt;/h2&gt;
&lt;p&gt;Docker Base Image from MS with SQL that allows .SQL scripts to be run on image creation
&lt;a href="https://github.com/microsoft/vscode-dev-containers/tree/master/containers/dotnet-mssql"&gt;https://github.com/microsoft/vscode-dev-containers/tree/master/containers/dotnet-mssql&lt;/a&gt;
&lt;a href="https://hub.docker.com/_/microsoft-vscode-devcontainers" rel="nofollow"&gt;https://hub.docker.com/_/microsoft-vscode-devcontainers&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;.NETCore 5.0&lt;/li&gt;
&lt;li&gt;NodeJS LTS installed&lt;/li&gt;
&lt;li&gt;SQL Server installed&lt;/li&gt;
&lt;li&gt;Blank DB created with .sql script called &lt;strong&gt;UmbracoUnicore&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;SQL Server Login&lt;/strong&gt;&lt;/p&gt;
&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Server&lt;/th&gt;
&lt;th&gt;Username&lt;/th&gt;
&lt;th&gt;Password&lt;/th&gt;
&lt;th&gt;Database Name&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;localhost&lt;/td&gt;
&lt;td&gt;sa&lt;/td&gt;
&lt;td&gt;P@ssw0rd&lt;/td&gt;
&lt;td&gt;UmbracoUnicore&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;h2&gt;
&lt;span class="octicon octicon-link"&gt;&lt;/span&gt;Pre Installed VSCode Extensions in Container&lt;/h2&gt;
&lt;p&gt;To give a consistent experience for all users using this development container (local or GitHub CodeSpaces) the VSCode instance will have the following extensions installed&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;C# (OmniSharp)
&lt;a href="https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csharp" rel="nofollow"&gt;https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csharp&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;SQL Server with a connection setup &amp;amp; preconfigured to the SQL Server Image
&lt;a href="https://marketplace.visualstudio.com/items?itemName=ms-mssql.mssql" rel="nofollow"&gt;https://marketplace.visualstudio.com/items?itemName=ms-mssql.mssql&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
&lt;span class="octicon octicon-link"&gt;&lt;/span&gt;Using SQL Server Management Studio&lt;/h2&gt;
&lt;p&gt;If you wish to connect to the localhost SQL server running in the container locally you can connect with the same credentials but change the server name to &lt;code&gt;host.docker.internal&lt;/code&gt;&lt;/p&gt;
&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Server&lt;/th&gt;
&lt;th&gt;Username&lt;/th&gt;
&lt;th&gt;Password&lt;/th&gt;
&lt;th&gt;Database Name&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;host.docker.internal&lt;/td&gt;
&lt;td&gt;sa&lt;/td&gt;
&lt;td&gt;P@ssw0rd&lt;/td&gt;
&lt;td&gt;UmbracoUnicore&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;h2&gt;
&lt;span class="octicon octicon-link"&gt;&lt;/span&gt;Related PR&lt;/h2&gt;
&lt;p&gt;The PR for automated user creation for unattended install from this PR has been merged into this PR
&lt;a href="https://github.com/umbraco/Umbraco-CMS/pull/9934"&gt;https://github.com/umbraco/Umbraco-CMS/pull/9934&lt;/a&gt;&lt;/p&gt;
&lt;h1&gt;
&lt;span class="octicon octicon-link"&gt;&lt;/span&gt;Outstanding Issues&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;[ ] Jasmine tests fail/do not run&lt;/li&gt;
&lt;li&gt;[x] In GitHub hosted CodeSpace .gitattributes line endings saying lots of files to commit (was casing for paths so gitignore)&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
&lt;span class="octicon octicon-link"&gt;&lt;/span&gt;Notes for issues above ⬆️
&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Jasmine tests - maybe try this &lt;a href="https://github.com/angular/angular-cli/issues/2013"&gt;https://github.com/angular/angular-cli/issues/2013&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

    &lt;/div&gt;
    &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/umbraco/Umbraco-CMS/pull/9835"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;


&lt;blockquote&gt;
&lt;p&gt;I can highly recommend adding a .devcontainer to your opensource project&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>github</category>
      <category>codespaces</category>
      <category>csharp</category>
      <category>netcore</category>
    </item>
  </channel>
</rss>
