Table of Contents

Class Shared

Namespace
SunamoDevCode.ToNetCore.research
Assembly
SunamoDevCode.dll

Shared utilities for .NET Core migration.

public class Shared
Inheritance
Shared
Inherited Members
Extension Methods

Fields

ExtractArchive

Action to extract archives during migration.

public static Action<string, bool> ExtractArchive

Field Value

Action<string, bool>

Type

Type of the Shared class for reflection purposes.

public static Type Type

Field Value

Type

Methods

PlaformTargetTo(ILogger, string, string, bool)

Changes the PlatformTarget in all csproj files within the given folder.

public static Task<string?> PlaformTargetTo(ILogger logger, string replaceFor, string folderNonRec, bool throwEx = false)

Parameters

logger ILogger

Logger instance.

replaceFor string

Target platform value to set.

folderNonRec string

Folder to search for csproj files (non-recursive).

throwEx bool

Whether to throw exceptions on errors.

Returns

Task<string>

Report of files that had issues, or null.

PlatformTargetTo(string, List<string>, bool)

Vyu��v� se v ChangeConvertNonWebPlatformTargetTo(), PlatformTargetTo a PlatformTargetToWeb()

public static Task<string> PlatformTargetTo(string replaceFor, List<string> tt, bool throwEx = false)

Parameters

replaceFor string

Target platform value to set (prefix with ! to remove).

tt List<string>

List of csproj file paths to process.

throwEx bool

Whether to throw exceptions on errors.

Returns

Task<string>

Report of files that had issues, or null.