Skip to content

Commit

Permalink
Add app.sln and app.csproj
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik Graf committed Jul 25, 2024
1 parent 6eb3e7c commit 9721a74
Show file tree
Hide file tree
Showing 6 changed files with 112 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,6 @@ jspm_packages

# Webpack cache
.temp_cache

obj/
bin/
7 changes: 5 additions & 2 deletions App_Data/app.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<SexyContent FileVersion="07.00.00" MinimumRequiredVersion="07.04.02" ModuleVersion="16.07.00" ExportDate="2023-09-26T09:50:10.8633783+02:00">
<SexyContent FileVersion="07.00.00" MinimumRequiredVersion="07.04.02" ModuleVersion="18.00.00" ExportDate="2024-07-25T10:31:39.5352811+02:00">
<Header>
<App Guid="5ec60d62-9ff6-4850-a9fe-e196fefe2a25" />
<Language Default="en-us" />
Expand Down Expand Up @@ -620,6 +620,9 @@
<Value Key="AllowTokenTemplates" Value="False" Type="Boolean">
<Dimension DimensionID="194" ReadOnly="false" />
</Value>
<Value Key="DebugLog" Value="" Type="String">
<Dimension DimensionID="194" ReadOnly="false" />
</Value>
<Value Key="Description" Value="A timeline App for creating nice timelines. It's basically a DNN-wrapper for the awesome TimelineJS" Type="String">
<Dimension DimensionID="194" ReadOnly="false" />
</Value>
Expand Down Expand Up @@ -647,7 +650,7 @@
<Value Key="SupportsAjaxReload" Value="True" Type="Boolean">
<Dimension DimensionID="194" ReadOnly="false" />
</Value>
<Value Key="Version" Value="02.04.00" Type="String">
<Value Key="Version" Value="02.04.01" Type="String">
<Dimension DimensionID="194" ReadOnly="false" />
</Value>
</Entity>
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,6 @@ If you want to customize the CSS, you will usually follow the ["Create Custom St
* Replaced turnOn Tag with `Kit.Page.TurnOn`
* v02.04.00 2023-07
* 2sxc 16.02 coding conventions
* everything typed
* everything typed
* v02.04.01 2024-07
* Add app.sln and app.csproj
2 changes: 1 addition & 1 deletion Timeline.PartAssets.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
@Kit.Page.Activate(condition: Kit.Css.IsUnknown, features: "Bootstrap5")

// Activate font-Awesome 5
Kit.Page.Activate("FontAwesome5");
Kit.Page.Activate("FontAwesome5", "2sxc.JsCore");

var data = new {
domAttribute = MyModel.String("timelineJsAttribute"),
Expand Down
74 changes: 74 additions & 0 deletions app.csproj
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>
26 changes: 26 additions & 0 deletions app.sln
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

0 comments on commit 9721a74

Please sign in to comment.