Skip to content

Commit

Permalink
important update because of vs-code C# devkit
Browse files Browse the repository at this point in the history
  • Loading branch information
iJungleboy committed May 30, 2024
1 parent baded64 commit 10da9cf
Show file tree
Hide file tree
Showing 7 changed files with 148 additions and 9 deletions.
4 changes: 2 additions & 2 deletions 2sxc Docs Generator/pages/abyss/releases/roadmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ also...

## Q2

1. Shared Field Configurations (not yet "published")
1. Export bundles
1. Shared Field Configurations (not yet "published")
1. Export bundles
1. Improve CSP in Oqtane 5 (once SSR is ready)
1. Create a User service to get more user data

Expand Down
19 changes: 18 additions & 1 deletion 2sxc Docs Generator/pages/guides/vscode/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ This guide will help you get VS Code Setup as best as possible for 2sxc developm
> For quick fixes and simple things, use the built-in editor, which is based on Monaco (VS Code Online).
> But for more sophisticated stuff we **highly recommend** VS Code.
> [!IMPORTANT]
> In 2024-05 the C# DevKit suddenly stopped working.
> We found a fix - pls update your `app.sln` to the newest sample below.
## Prepare VS Code for 2sxc

VSCode is amazing right out of the box, but to really be productive, you need to do a few things:
Expand Down Expand Up @@ -54,8 +58,21 @@ EndProject
# This is necessary so that VS Code can perform intellisense in Razor
# It also requires a csproj file to exist as well
#
# Read more on https://go.2sxc.org/vscode
# Read more and get help for issues on https://go.2sxc.org/vscode
#
# Addition 2024-05
# The following section is suddenly required by the C# DevKit
# See https://github.com/microsoft/vscode-dotnettools/issues/1151
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
```

**Template for the `/app.csproj` file**
Expand Down
4 changes: 2 additions & 2 deletions docs/abyss/releases/roadmap.html
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ <h2 id="2024-q2-finish-dod--almost-done-work">2024 Q2 Finish DoD / Almost-Done W
</ol>
<h2 id="q2">Q2</h2>
<ol>
<li>Shared Field Configurations (not yet &quot;published&quot;)</li>
<li>Export bundles</li>
<li>Shared Field Configurations (not yet &quot;published&quot;)</li>
<li>Export bundles</li>
<li>Improve CSP in Oqtane 5 (once SSR is ready)</li>
<li>Create a User service to get more user data</li>
</ol>
Expand Down
79 changes: 79 additions & 0 deletions docs/api/dot-net/ToSic.Lib.Logging.ILogCallExtensions.html
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,85 @@ <h4 class="section">Type Parameters</h4>



<a id="ToSic_Lib_Logging_ILogCallExtensions_ReturnEmpty_" data-uid="ToSic.Lib.Logging.ILogCallExtensions.ReturnEmpty*"></a>

<h3 id="ToSic_Lib_Logging_ILogCallExtensions_ReturnEmpty_ToSic_Lib_Logging_ILogCall_System_String__" data-uid="ToSic.Lib.Logging.ILogCallExtensions.ReturnEmpty(ToSic.Lib.Logging.ILogCall{System.String})">
ReturnEmpty(ILogCall&lt;string&gt;)
<a class="header-action link-secondary" title="View source" href="https://github.com/2sic/eav-server/blob/develop/ToSic.Lib.Core/Logging/LogCall/ILogCallExtensions_T.cs/#L91"><i class="bi bi-code-slash"></i></a>
</h3>

<div class="markdown level1 summary"><p>Return <code>true</code> for <code>ILogCall bool</code> objects.</p>
</div>
<div class="markdown level1 conceptual"></div>

<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string ReturnEmpty(this ILogCall&lt;string&gt; logCall)</code></pre>
</div>

<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>logCall</code> <a class="xref" href="ToSic.Lib.Logging.ILogCall-1.html">ILogCall</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>&gt;</dt>
<dd><p>The log call or null</p>
</dd>
</dl>

<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd></dd>
</dl>











<a id="ToSic_Lib_Logging_ILogCallExtensions_ReturnEmpty_" data-uid="ToSic.Lib.Logging.ILogCallExtensions.ReturnEmpty*"></a>

<h3 id="ToSic_Lib_Logging_ILogCallExtensions_ReturnEmpty_ToSic_Lib_Logging_ILogCall_System_String__System_String_" data-uid="ToSic.Lib.Logging.ILogCallExtensions.ReturnEmpty(ToSic.Lib.Logging.ILogCall{System.String},System.String)">
ReturnEmpty(ILogCall&lt;string&gt;, string)
<a class="header-action link-secondary" title="View source" href="https://github.com/2sic/eav-server/blob/develop/ToSic.Lib.Core/Logging/LogCall/ILogCallExtensions_T.cs/#L99"><i class="bi bi-code-slash"></i></a>
</h3>

<div class="markdown level1 summary"><p>Return <code>true</code> for <code>ILogCall bool</code> objects.</p>
</div>
<div class="markdown level1 conceptual"></div>

<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string ReturnEmpty(this ILogCall&lt;string&gt; logCall, string message)</code></pre>
</div>

<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>logCall</code> <a class="xref" href="ToSic.Lib.Logging.ILogCall-1.html">ILogCall</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>&gt;</dt>
<dd><p>The log call or null</p>
</dd>
<dt><code>message</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p>Message to add to the log</p>
</dd>
</dl>

<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd></dd>
</dl>











<a id="ToSic_Lib_Logging_ILogCallExtensions_ReturnFalse_" data-uid="ToSic.Lib.Logging.ILogCallExtensions.ReturnFalse*"></a>

<h3 id="ToSic_Lib_Logging_ILogCallExtensions_ReturnFalse_ToSic_Lib_Logging_ILogCall_System_Boolean__" data-uid="ToSic.Lib.Logging.ILogCallExtensions.ReturnFalse(ToSic.Lib.Logging.ILogCall{System.Boolean})">
Expand Down
20 changes: 19 additions & 1 deletion docs/guides/vscode/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ <h5>Tip</h5>
For quick fixes and simple things, use the built-in editor, which is based on Monaco (VS Code Online).
But for more sophisticated stuff we <strong>highly recommend</strong> VS Code.</p>
</div>
<div class="IMPORTANT">
<h5>Important</h5>
<p>In 2024-05 the C# DevKit suddenly stopped working.
We found a fix - pls update your <code>app.sln</code> to the newest sample below.</p>
</div>
<h2 id="prepare-vs-code-for-2sxc">Prepare VS Code for 2sxc</h2>
<p>VSCode is amazing right out of the box, but to really be productive, you need to do a few things:</p>
<ol>
Expand Down Expand Up @@ -155,8 +160,21 @@ <h5>Tip</h5>
# This is necessary so that VS Code can perform intellisense in Razor
# It also requires a csproj file to exist as well
#
# Read more on https://go.2sxc.org/vscode
# Read more and get help for issues on https://go.2sxc.org/vscode
#

# Addition 2024-05
# The following section is suddenly required by the C# DevKit
# See https://github.com/microsoft/vscode-dotnettools/issues/1151
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
</code></pre>
<p><strong>Template for the <code>/app.csproj</code> file</strong></p>
<pre><code class="lang-xml">&lt;Project Sdk=&quot;Microsoft.NET.Sdk.Web&quot;&gt;
Expand Down
Loading

0 comments on commit 10da9cf

Please sign in to comment.