Skip to content

Commit 9721a74

Browse files
author
Dominik Graf
committed
Add app.sln and app.csproj
1 parent 6eb3e7c commit 9721a74

File tree

6 files changed

+112
-4
lines changed

6 files changed

+112
-4
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,6 @@ jspm_packages
3838

3939
# Webpack cache
4040
.temp_cache
41+
42+
obj/
43+
bin/

App_Data/app.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
2-
<SexyContent FileVersion="07.00.00" MinimumRequiredVersion="07.04.02" ModuleVersion="16.07.00" ExportDate="2023-09-26T09:50:10.8633783+02:00">
2+
<SexyContent FileVersion="07.00.00" MinimumRequiredVersion="07.04.02" ModuleVersion="18.00.00" ExportDate="2024-07-25T10:31:39.5352811+02:00">
33
<Header>
44
<App Guid="5ec60d62-9ff6-4850-a9fe-e196fefe2a25" />
55
<Language Default="en-us" />
@@ -620,6 +620,9 @@
620620
<Value Key="AllowTokenTemplates" Value="False" Type="Boolean">
621621
<Dimension DimensionID="194" ReadOnly="false" />
622622
</Value>
623+
<Value Key="DebugLog" Value="" Type="String">
624+
<Dimension DimensionID="194" ReadOnly="false" />
625+
</Value>
623626
<Value Key="Description" Value="A timeline App for creating nice timelines. It's basically a DNN-wrapper for the awesome TimelineJS" Type="String">
624627
<Dimension DimensionID="194" ReadOnly="false" />
625628
</Value>
@@ -647,7 +650,7 @@
647650
<Value Key="SupportsAjaxReload" Value="True" Type="Boolean">
648651
<Dimension DimensionID="194" ReadOnly="false" />
649652
</Value>
650-
<Value Key="Version" Value="02.04.00" Type="String">
653+
<Value Key="Version" Value="02.04.01" Type="String">
651654
<Dimension DimensionID="194" ReadOnly="false" />
652655
</Value>
653656
</Entity>

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,6 @@ If you want to customize the CSS, you will usually follow the ["Create Custom St
4949
* Replaced turnOn Tag with `Kit.Page.TurnOn`
5050
* v02.04.00 2023-07
5151
* 2sxc 16.02 coding conventions
52-
* everything typed
52+
* everything typed
53+
* v02.04.01 2024-07
54+
* Add app.sln and app.csproj

Timeline.PartAssets.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
@Kit.Page.Activate(condition: Kit.Css.IsUnknown, features: "Bootstrap5")
66

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

1010
var data = new {
1111
domAttribute = MyModel.String("timelineJsAttribute"),

app.csproj

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
<Project Sdk="Microsoft.NET.Sdk.Web">
2+
<!-- This file helps VS Code provide IntelliSense - see https://go.2sxc.org/vscode -->
3+
<!-- Template v2024-06-19. If you have issues, try getting a newer copy from the url above -->
4+
5+
<!-- Specify the default Namespace for C# code in this specific App -->
6+
<PropertyGroup>
7+
<RootNamespace>AppCode</RootNamespace>
8+
</PropertyGroup>
9+
10+
<!-- First: Detect if it's running in Dnn, Oqtane-Production or Oqtane-Dev -->
11+
<PropertyGroup>
12+
<RunningInDnn Condition="Exists('..\..\..\..\bin\DotNetNuke.dll')">true</RunningInDnn>
13+
<RunningInOqtane Condition="Exists('..\..\..\Oqtane.Server.dll') Or Exists('..\..\..\bin\Debug\net8.0\Oqtane.Server.dll')">true</RunningInOqtane>
14+
<OqtaneIsProd Condition="Exists('..\..\..\Oqtane.Server.dll')">true</OqtaneIsProd>
15+
<OqtaneIsDev Condition="Exists('..\..\..\bin\Debug\net8.0\Oqtane.Server.dll')">true</OqtaneIsDev>
16+
</PropertyGroup>
17+
18+
<!-- Settings for Dnn -->
19+
<PropertyGroup Condition="'$(RunningInDnn)' == 'true'">
20+
<!-- Specify .net 4.7.2, C# 8.0 and Bin folder for DNN - see https://go.2sxc.org/vscode -->
21+
<TargetFramework>net472</TargetFramework>
22+
<LangVersion>8.0</LangVersion>
23+
<PathBin>..\..\..\..\bin</PathBin>
24+
</PropertyGroup>
25+
26+
<!-- Settings for Oqtane -->
27+
<PropertyGroup Condition="'$(RunningInOqtane)' == 'true'">
28+
<!-- Oqtane 5+ uses .net 8 and a very new C# language version -->
29+
<TargetFramework>net8.0</TargetFramework>
30+
<LangVersion>latest</LangVersion>
31+
32+
<!-- PathBin Oqtane production, the bin folder is in the root, just up 3 folders, no bin-subfolder -->
33+
<PathBin Condition="'$(OqtaneIsProd)' == 'true'">..\..\..</PathBin>
34+
35+
<!-- PathBin Oqtane dev/debug, the bin folder is deeper down, up 3 folders and current build folder -->
36+
<PathBin Condition="'$(OqtaneIsDev)' == 'true'">..\..\..\bin\Debug\net8.0</PathBin>
37+
</PropertyGroup>
38+
39+
40+
<!-- IntelliSense: Load all DLLs which exist in Dnn and Oqtane from the bin folder -->
41+
<ItemGroup>
42+
<Reference Include="$(PathBin)\ToSic.*.dll" />
43+
<Reference Include="$(PathBin)\Connect.Koi.dll" />
44+
45+
<!-- Common Microsoft DLLs -->
46+
<Reference Include="$(PathBin)\System.Text.Json.dll" />
47+
48+
<!-- Also load files in the Dependencies folder of the current App -->
49+
<Reference Include="Dependencies\*.dll" />
50+
</ItemGroup>
51+
52+
<!-- IntelliSense: DNN specific -->
53+
<ItemGroup Condition="'$(RunningInDnn)' == 'true'">
54+
<!-- also add System.Web and DotNetNuke DLLs - useful when creating APIs, but be aware that it may make your code less hybrid -->
55+
<Reference Include="$(PathBin)\DotNetNuke.dll" />
56+
<Reference Include="$(PathBin)\DotNetNuke.*.dll" />
57+
<Reference Include="$(PathBin)\System.Web.Http.dll" />
58+
<Reference Include="$(PathBin)\System.Web.WebPages.dll" />
59+
60+
<!-- System.Web is not in the DNN folder but in the .net Framework installed on the server -->
61+
<Reference Include="System.Web" />
62+
<Reference Include="System.Net.Http" />
63+
</ItemGroup>
64+
65+
<!-- Polymorphism - if have files with the same classes confuse IntelliSense - see https://go.2sxc.org/vscode -->
66+
<!-- Example: exclude /live as we're always working on /staging -->
67+
<!-- <ItemGroup>
68+
<None Remove="live\**" />
69+
<Content Remove="live\**" />
70+
<Compile Remove="live\**" />
71+
<EmbeddedResource Remove="live\**" />
72+
</ItemGroup> -->
73+
74+
</Project>

app.sln

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Microsoft Visual Studio Solution File, Format Version 12.00
2+
# Visual Studio Version 17
3+
VisualStudioVersion = 17.5.002.0
4+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "App", "app.csproj", "{9F7A078F-99D5-4EF4-8EC0-C6B920FE679C}"
5+
EndProject
6+
7+
#
8+
# Visual Studio .sln File for 2sxc App
9+
# This is necessary so that VS Code can perform intellisense in Razor
10+
# It also requires a csproj file to exist as well
11+
#
12+
# Read more and get help for issues on https://go.2sxc.org/vscode
13+
#
14+
15+
# Addition 2024-05
16+
# The following section is suddenly required by the C# DevKit
17+
# See https://github.com/microsoft/vscode-dotnettools/issues/1151
18+
Global
19+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
20+
Debug|Any CPU = Debug|Any CPU
21+
Release|Any CPU = Release|Any CPU
22+
EndGlobalSection
23+
GlobalSection(SolutionProperties) = preSolution
24+
HideSolutionNode = FALSE
25+
EndGlobalSection
26+
EndGlobal

0 commit comments

Comments
 (0)