-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dominik Graf
committed
Jul 25, 2024
1 parent
6eb3e7c
commit 9721a74
Showing
6 changed files
with
112 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,3 +38,6 @@ jspm_packages | |
|
||
# Webpack cache | ||
.temp_cache | ||
|
||
obj/ | ||
bin/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
<Project Sdk="Microsoft.NET.Sdk.Web"> | ||
<!-- This file helps VS Code provide IntelliSense - see https://go.2sxc.org/vscode --> | ||
<!-- Template v2024-06-19. If you have issues, try getting a newer copy from the url above --> | ||
|
||
<!-- Specify the default Namespace for C# code in this specific App --> | ||
<PropertyGroup> | ||
<RootNamespace>AppCode</RootNamespace> | ||
</PropertyGroup> | ||
|
||
<!-- First: Detect if it's running in Dnn, Oqtane-Production or Oqtane-Dev --> | ||
<PropertyGroup> | ||
<RunningInDnn Condition="Exists('..\..\..\..\bin\DotNetNuke.dll')">true</RunningInDnn> | ||
<RunningInOqtane Condition="Exists('..\..\..\Oqtane.Server.dll') Or Exists('..\..\..\bin\Debug\net8.0\Oqtane.Server.dll')">true</RunningInOqtane> | ||
<OqtaneIsProd Condition="Exists('..\..\..\Oqtane.Server.dll')">true</OqtaneIsProd> | ||
<OqtaneIsDev Condition="Exists('..\..\..\bin\Debug\net8.0\Oqtane.Server.dll')">true</OqtaneIsDev> | ||
</PropertyGroup> | ||
|
||
<!-- Settings for Dnn --> | ||
<PropertyGroup Condition="'$(RunningInDnn)' == 'true'"> | ||
<!-- Specify .net 4.7.2, C# 8.0 and Bin folder for DNN - see https://go.2sxc.org/vscode --> | ||
<TargetFramework>net472</TargetFramework> | ||
<LangVersion>8.0</LangVersion> | ||
<PathBin>..\..\..\..\bin</PathBin> | ||
</PropertyGroup> | ||
|
||
<!-- Settings for Oqtane --> | ||
<PropertyGroup Condition="'$(RunningInOqtane)' == 'true'"> | ||
<!-- Oqtane 5+ uses .net 8 and a very new C# language version --> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<LangVersion>latest</LangVersion> | ||
|
||
<!-- PathBin Oqtane production, the bin folder is in the root, just up 3 folders, no bin-subfolder --> | ||
<PathBin Condition="'$(OqtaneIsProd)' == 'true'">..\..\..</PathBin> | ||
|
||
<!-- PathBin Oqtane dev/debug, the bin folder is deeper down, up 3 folders and current build folder --> | ||
<PathBin Condition="'$(OqtaneIsDev)' == 'true'">..\..\..\bin\Debug\net8.0</PathBin> | ||
</PropertyGroup> | ||
|
||
|
||
<!-- IntelliSense: Load all DLLs which exist in Dnn and Oqtane from the bin folder --> | ||
<ItemGroup> | ||
<Reference Include="$(PathBin)\ToSic.*.dll" /> | ||
<Reference Include="$(PathBin)\Connect.Koi.dll" /> | ||
|
||
<!-- Common Microsoft DLLs --> | ||
<Reference Include="$(PathBin)\System.Text.Json.dll" /> | ||
|
||
<!-- Also load files in the Dependencies folder of the current App --> | ||
<Reference Include="Dependencies\*.dll" /> | ||
</ItemGroup> | ||
|
||
<!-- IntelliSense: DNN specific --> | ||
<ItemGroup Condition="'$(RunningInDnn)' == 'true'"> | ||
<!-- also add System.Web and DotNetNuke DLLs - useful when creating APIs, but be aware that it may make your code less hybrid --> | ||
<Reference Include="$(PathBin)\DotNetNuke.dll" /> | ||
<Reference Include="$(PathBin)\DotNetNuke.*.dll" /> | ||
<Reference Include="$(PathBin)\System.Web.Http.dll" /> | ||
<Reference Include="$(PathBin)\System.Web.WebPages.dll" /> | ||
|
||
<!-- System.Web is not in the DNN folder but in the .net Framework installed on the server --> | ||
<Reference Include="System.Web" /> | ||
<Reference Include="System.Net.Http" /> | ||
</ItemGroup> | ||
|
||
<!-- Polymorphism - if have files with the same classes confuse IntelliSense - see https://go.2sxc.org/vscode --> | ||
<!-- Example: exclude /live as we're always working on /staging --> | ||
<!-- <ItemGroup> | ||
<None Remove="live\**" /> | ||
<Content Remove="live\**" /> | ||
<Compile Remove="live\**" /> | ||
<EmbeddedResource Remove="live\**" /> | ||
</ItemGroup> --> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 17 | ||
VisualStudioVersion = 17.5.002.0 | ||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "App", "app.csproj", "{9F7A078F-99D5-4EF4-8EC0-C6B920FE679C}" | ||
EndProject | ||
|
||
# | ||
# Visual Studio .sln File for 2sxc App | ||
# This is necessary so that VS Code can perform intellisense in Razor | ||
# It also requires a csproj file to exist as well | ||
# | ||
# 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 |