When I run a custom Scaffold command in the Package Manager Console, it updates the default project's .csproj file and adds in references to all the other files in all the other projects in the solution!
Has anyone else seen this?
Is there a fix to avoid it?
The only lines in the .ps1 file that may actually do anything look like this:
Invoke-ScaffoldTemplate -Template $templateFile -Model @{ Name = $MyParam } -OutputPath $outputPath -Force:$Force
Edit The script in the PS1 file (in the main project) manually targets the paths of the output files to be in other projects:
$outputPath = "..\OtherProject\TargetFolder\" + $EntityName
In the "Invoke-ScaffoldTemplate" command, I specifically removed the reference to the Project, hoping this was the problem.