suppress validation during dotnet sln add

Open
#14,751 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
csharp
Domain
build-system, cli

Research direction

Start by tracing the dotnet sln add command and reviewing the two linked SDK issues for existing context on validation and MSBuild properties. Done should be defined as a documented, tested way to add a project without the current checks, if that behavior is accepted.

Written by the indexing model from the issue text.

Description

Area-CLI

I stumbled over problems during dotnet sln add already several times. It performs some build checks when you add a project, but there's no possibility to pass msbuild properties to the build context. And it takes very long just to add some lines to a project file.

Is there a possibility to skip those checks and simply let 'dotnet sln add' do what the command suggests: adding a project to the solution?

see also here: https://github.com/dotnet/sdk/issues/10719 and here https://github.com/dotnet/sdk/issues/11292

Dominant language
C#
Stars
3.2k
Forks
1.3k
Avg merge
4d 1h
Merged PRs (30d)
235

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dotnet/sdk

All issues in dotnet/sdk

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.