Skip to content

Change the way of generating new project file #1403

Open
@adamsitnik

Description

@adamsitnik

As of today, we generate the .csproj file by filling this text template.

The main disadvantage of this approach is that if there are any custom MSBuild settings in the project with a benchmark that we are not aware of, we sometimes fail to build the project and hence fail to run the benchmarks.

We used to follow a similar approach for generating the app.config files, but at some point in time we changed the approach to "rewrite everything from the source file unless it's on our list of settings". The code can be found here

I propose that we switch to a similar approach with the .csproj file:

  • copy the source project file
  • update all relative paths
  • replace the settings we know (TFM, optimizations enabled, project name etc)
  • add a reference to the source project

This should fix:

and a few more issues

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions