menu
Logo
  • Why azing?
  • Blog
  • Help
ENarrow_drop_down
  • DE
  • EN
Suche in Checklisten
search
azing Logo ENarrow_drop_down
  • DE
  • EN
  • Why azing?
  • Help
2sxc
drive_folder_upload
  • homeChecklist Templates
  • south
  • fiber_manual_recordOqtane
  • south

folder_sharedOqtane

  • homeChecklist Templates
  • south
  • fiber_manual_recordOqtane
  • south

folder_sharedOqtane

Folders and checklists

  • check_circleInstall 2sxc in Oqtane
  • check_circleInstall 2sxc module in Oqtane Framework source code with Visual Studio 2022
  • check_circleInstall Razor.Compiler.Dependencies.zip
  • check_circleOqtane System Update
  • check_circlePackage ToSic.Sxc.N.N.N.nupkg
  • infoSecurity Attributes
  • check_circleUpgrade 2sxc module in Oqtane
  • check_circleWarning: The "refs" folder is missing. Please ensure that Razor.Compiler.Dependencies.zip is unzipped as explained in the installation recipe

Parts (0) expand_more

These are small document-parts which are used in other documents. They are not a starting point for any real activity. Because of this, they will be listed further down and the search will not list them unless requested. 

After adding 2sxc templates to your Oqtane project, the build process may fail with numerous errors—sometimes over 1,000—rendering Oqtane unusable in the development environment. This happens because Visual Studio includes all new files and folders added by the templates into the project build by default.

The 2sxc templates introduce additional files that are necessary for the application to run but are not meant to be part of the compiled code. Including them causes conflicts and compilation errors because the compiler tries to process files that aren't valid C# code or are duplicates.

There are two ways you can fix it:

Option 1: Click your Way through Visual Studio

  1. In VS2022, in Solution Explorer, on Oqtane.Server project, Exclude From Project following folders (in right click context menu):
    1. 2sxc
  2. Run debug one more time to confirm that all is OK.

Option 2: Adjust your Oqtane.Server.csproj

  1. Open Oqtane.Server.csproj
    Locate the Oqtane.Server.csproj file in your project directory and open it with a text editor or within Visual Studio.
  2. Add Exclusion Rules
    Insert the following `<ItemGroup>` section into the project file:
       <ItemGroup>
       <!-- Exclude these directories from compilation -->
       <Compile Remove="2sxc\**" />
       <!-- Exclude content files from the build output -->
       <Content Remove="2sxc\**" />
       <!-- Exclude files from being embedded as resources -->
       <EmbeddedResource Remove="2sxc\**" />
       <!-- Exclude miscellaneous files not included elsewhere -->
       <None Remove="2sxc\**" />
       <!-- Exclude files from the dotnet watch tool -->
       <Watch Remove="2sxc\**" />
     </ItemGroup>
    This configuration explicitly tells the build system to ignore all files within the 2sxc directory when compiling, embedding resources, including content files, and monitoring for changes.
  3. Save and Rebuild
    Save the changes to Oqtane.Server.csproj and rebuild the project by pressing F5 or selecting Build > Rebuild Solution in Visual Studio.
Logo
Legal | Content Copyright CC-BY 4.0
bug_reportReport Bug
  • info
  • Links
  • Permissions
code Share
code
URL copied to clipboard.
Embed Checklist close
Copy Copy
Content Copyright

CC-BY 4.0

Translations

None

2sxc - Content Management for DNN & Oqtane Logo

2sxc - Content Management for DNN & Oqtane

QR-Code
azing.org/2sxc/r/uF9hIXgR
View & Use

Public (can be used by everybody)

Edit & Admin

Default (all members can edit)

This catalog has a simple permission model, where all members have the same permissions. For advanced permissions, upgrade to Enterprise.

Here you can see how this document is used and linked by other documents

Used in (2)

Others referencing this

  1. Install 2sxc module in Oqtane Framework source code with Visual Studio 2022
  2. Disable Hot Reload for IIS Express profile of Oqtane.Server project in Visual Studio 2022
Uses these (0)

Documents linked from this document

How it Behaves

How this document is categorized changes how it behaves.

This is a partial document. It is listed below the normal documents, and is hidden in the default search.

It belongs to Install 2sxc module in Oqtane Framework source code with Visual Studio 2022

Type

This is a Checklist. Lists are converted into checkboxes.

Get something to say?

Comment to start a discussion or make a note
send

please log on to chat

close

Durchsuche ganz Azing