Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the CSPROJ to build the mutated code #712

Closed
aarongomez1 opened this issue Sep 9, 2019 · 2 comments
Closed

Use the CSPROJ to build the mutated code #712

aarongomez1 opened this issue Sep 9, 2019 · 2 comments
Labels
🚀 Feature request New feature or request

Comments

@aarongomez1
Copy link

Is your feature request related to a problem? Please describe.

I have a multi-targeted C# project that builds both .NetStandard and .NetFramework462 output. To get this to work with my scenarios I was not able to opt-in to the MSTest v2 feature of having it automatically compile all files in the project folder. I have it set to manually control the compiled files. This project auto-generates CS files from its pre-build event using an XSLT and it optionally includes the CS files into compilation based on teh current build setting. Its a bit complicated.

The issue I'm having is that after the mutator runs against my CS files, it doesn't seem to compile using my CSPROJ settings. Its like it is just compiling thinking it can auto-compile with everything in the project folder which doesn't work for me.

Describe the solution you'd like
I'd like it if post-mutation it compiled using the CSPROJ settings, as it seems to ignore my setting and it tries to automatically include all CS files in the folder. This causes redundant classes to show up and the compile fails.
log-20190909.txt
vstest-log.host.19-09-09_16-13-49_92662_6.txt
vstest-log.host.19-09-09_16-13-55_18559_6.txt
vstest-log.txt

@aarongomez1 aarongomez1 added the 🚀 Feature request New feature or request label Sep 9, 2019
@rouke-broersma
Copy link
Member

You're right, currently we find all cs files on disk and include them in the compilation. We would like to change this but have not managed to get msbuild to give us all relevant project files yet in a reasonable way.

@rouke-broersma
Copy link
Member

Fixed by #898

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚀 Feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants