dotnet / dotnet/project-system

Document the differences between normal and design-time builds

Open
#4,348 4 comments 2 reactions 0 assignees View on GitHub
Triage-Approved
Dominant language
C#
Stars
1k
Forks
415
PR merge metrics
No merged PRs in 30d

Description

I've glanced through this article:
https://github.com/dotnet/project-system/blob/master/docs/design-time-builds.md

But it doesn't seem to mention what the actual differences are between a design-time build and a regular command-line build. I'd like to be able to emulate a design-time build to an extent to be able to understand what is happening inside Visual Studio.

I can't remember the exact list, but I think there's a set of properties you need to set, such as:

```
DesignTimeBuild = true
BuildingInsideVisualStudio = true
BuildProjectReferences = false
SkipCompilerExecution = true
ProvideCommandLineArgs = true
```

Since the article above is the first place I'd go looking for this information it'd be nice to have it there. I'd send a PR but I'm not quite sure what is the exact set of properties and/or targets required.

It's OK if we can't fully emulate the design-time build, but it'd be nice to get to it as close as possible.

@davkean @panopticoncentral

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.