Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Visual Studio C#-ItemTemplate

Empfohlene Antworten

Veröffentlicht

Grüße,

ich hab mir grade ein ItemTemplate für Visual Studio in C# geschrieben, dass wie folgt aussieht:


using System;

using System.Collections;

using System.Collections.Generic;


namespace $rootnamespace$

{

[INDENT]internal class $safeitemrootname$

{

[INDENT]#region Members


#endregion[/INDENT]



[INDENT]#region Constructors


public $safeitemrootname$()

{

}


#endregion[/INDENT]



[INDENT]#region Properties


#endregion[/INDENT]



[INDENT]#region Methods


#endregion[/INDENT]


}[/INDENT]

}

Das Problem, welches bei mir aber grade passiert: Ich erstell in Solution xyz einen Ordner abc, erzeuge in dem Ordner eine Klasse mit dem Template, leider ist dann aber der Namespace dieser Klasse xyz.abc, ich hätte aber gern, dass der Namespace immer standardmäßig auf den Assemblynamen festgelegt ist. Ich habe schon versucht $rootnamespace$ mit $safeprojectname$ zu ersetzen, leider wird dieser Parameter komplett ignoriert sodass dann
namspace $safeprojectname$

{

//...

}

in der Datei steht. Die Tatsache, dass ich nur $rootnamespace$ für den Namensbereich nehmen kann, kann ich auch nicht bestätigen. Z.B. $username$ wird korrekt übersetzt.

Gibt es noch weitere Parameter oder muss ich jetzt damit leben?

PS: Vorlagenparameter

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.