xtofs.editorconfig 1.0.0

Additional Details

published in error

dotnet add package xtofs.editorconfig --version 1.0.0
                    
NuGet\Install-Package xtofs.editorconfig -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="xtofs.editorconfig" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="xtofs.editorconfig" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="xtofs.editorconfig" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add xtofs.editorconfig --version 1.0.0
                    
#r "nuget: xtofs.editorconfig, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package xtofs.editorconfig@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=xtofs.editorconfig&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=xtofs.editorconfig&version=1.0.0
                    
Install as a Cake Tool

xtofs.editorconfig

A source code only NuGet package that installs an .editorconfig file with C# coding standards to your project.

Installation

Install via NuGet:

dotnet add package xtofs.editorconfig

Or via NuGet Package Manager:

Install-Package xtofs.editorconfig

Usage

Once installed, the .editorconfig file will be placed in the root of your project. This file defines coding standards for C# files in your solution.

Configuration

The .editorconfig file includes settings for:

  • Code formatting (indentation, spacing, line breaks)
  • Naming conventions (PascalCase, camelCase, interfaces, etc.)
  • C# language preferences (var usage, pattern matching, expressions)
  • Analyzer rules and severity levels

You can override these settings by creating an .editorconfig file in your project directory with the settings you prefer.

Deployment

Deploy to NuGet as a Private Package

To publish this package to a private NuGet feed:

1. Build the Package
dotnet pack -c Release

The .nupkg file will be generated in bin/Release/.

2. Set Up NuGet Credentials

Configure your NuGet source with credentials. Edit or create ~/.nuget/NuGet/NuGet.Config:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <add key="MyPrivateFeed" value="https://your-nuget-server.com/api/v2" />
  </packageSources>
  <packageSourceCredentials>
    <MyPrivateFeed>
      <add key="Username" value="your-username" />
      <add key="ClearTextPassword" value="your-api-key" />
    </MyPrivateFeed>
  </packageSourceCredentials>
</configuration>

Or use your API key directly:

dotnet nuget add source "https://your-nuget-server.com/api/v2" -n MyPrivateFeed -u username -p your-api-key
3. Push the Package
dotnet nuget push bin/Release/xtofs.editorconfig.1.0.0.nupkg --source MyPrivateFeed --api-key your-api-key
4. Consume from Your Private Feed

In the consuming project, add the package source to your NuGet configuration or specify it directly:

dotnet add package xtofs.editorconfig --source MyPrivateFeed

Using GitHub Packages

If hosting on GitHub:

  1. Create a Personal Access Token (PAT) with write:packages scope
  2. Configure the source:
dotnet nuget add source "https://nuget.pkg.github.com/yourusername/index.json" -n github -u yourusername -p YOUR_PAT
  1. Push the package:
dotnet nuget push bin/Release/xtofs.editorconfig.1.0.0.nupkg --source github

License

MIT License

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 471 3/27/2026 1.0.0 is deprecated.