Skip to content
This repository has been archived by the owner on Dec 12, 2020. It is now read-only.

feat: Allow override of the generated files output path #228

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@
<CodeGenerationRoslynToolPath
Condition="'$(GenerateCodeFromAttributesToolPathOverride)' != ''">$(GenerateCodeFromAttributesToolPathOverride)</CodeGenerationRoslynToolPath>
<CodeGenerationRoslynToolPath>$(CodeGenerationRoslynToolPath.Trim())</CodeGenerationRoslynToolPath>
<CodeGenerationRoslynFilesOutputPath
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I'd prefer CodeGenerationRoslynToolOutputPath.

Condition="'$(CodeGenerationRoslynFilesOutputPath)' == ''">$(IntermediateOutputPath)</CodeGenerationRoslynFilesOutputPath>
<_CodeGenToolOutputBasePath>$(IntermediateOutputPath)$(MSBuildProjectFile).dotnet-codegen</_CodeGenToolOutputBasePath>
<_CodeGenToolResponseFileFullPath>$(_CodeGenToolOutputBasePath).rsp</_CodeGenToolResponseFileFullPath>
<_CodeGenToolGeneratedFileListFullPath>$(_CodeGenToolOutputBasePath).GeneratedFileList.txt</_CodeGenToolGeneratedFileListFullPath>
Expand All @@ -73,7 +75,7 @@
@(_CodeGenerationRoslynResolvedProperty->'%(Key)=%(Value)'->Replace(';', '%3B')->'--buildProperty;%(Identity)');
@(CodeGenerationRoslynPlugin->'--plugin;%(Identity)');
--out;
$(IntermediateOutputPath);
$(CodeGenerationRoslynFilesOutputPath);
--projectDir;
$(MSBuildProjectDirectory);
--generatedFilesList;
Expand Down