Skip to content

Commit

Permalink
fixed UpToDateChecks for feature files in MSBuild target (#1365)
Browse files Browse the repository at this point in the history
* add feature files to UpToDateCheck* itemgroups

* Extended UpToDateCheckBuild with "Original"

Updated changelog
  • Loading branch information
SabotageAndi authored Dec 17, 2018
1 parent b0e03e4 commit 44ea742
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
7 changes: 7 additions & 0 deletions TechTalk.SpecFlow.Tools/MsBuild/TechTalk.SpecFlow.props
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@
- after pulling latest changes from version control with above changes
-->
<SpecFlowObsoleteCodeBehindFiles Include="**\*.feature.cs" Exclude="@(SpecFlowFeatureFiles->'%(CodeBehindFile)')" />

<!-- Support for Visual Studio Incremental Build
https://github.com/techtalk/SpecFlow/issues/1319
-->
<UpToDateCheckInput Include="@(SpecFlowFeatureFiles)" />
<UpToDateCheckBuild Include="@(SpecFlowFeatureFiles->'%(CodeBehindFile)')" Original="@(SpecFlowFeatureFiles)" />
<CustomAdditionalCompileInputs Include="@(SpecFlowFeatureFiles->'%(CodeBehindFile)')" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class CodeBehindFileGenerationTests
public void TestIfCodeBehindFilesWasGeneratedAndCompiled()
{
var assemblyHoldingThisClass = Assembly.GetExecutingAssembly();
var typeOfGeneratedFeatureFile = assemblyHoldingThisClass.GetType(nameof(DummyFeatureFileToTestMSBuildNetsdkCodebehindFileGenerationFeature));
var typeOfGeneratedFeatureFile = assemblyHoldingThisClass.GetType(typeof(DummyFeatureFileToTestMSBuildNetsdkCodebehindFileGenerationFeature).FullName);
Assert.IsNotNull(typeOfGeneratedFeatureFile);
}
}
Expand Down
6 changes: 6 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2.4.1 - 2018-??-??

Fixes:
+ Visual Studio change detection integration for Net.SDK style projects via SpecFlow.Tools.MSBuild.Generation https://github.com/techtalk/SpecFlow/issues/1319


2.4 - 2018-08-20
New Features:
+ Added ability to convert type to same type or one of the base types https://github.com/techtalk/SpecFlow/pull/1110
Expand Down

0 comments on commit 44ea742

Please sign in to comment.