Change extension on test/generated folders to "*.testing"
MODIFY
.gitignore
.gitignore
-# Files specific to this project:
+# Files/Folders specific to this project:
*.encrypt # Generated by one of the projects and left around on occasion.
-**/*.gc/ # Folders generated buy tests will use the *.g extension so they aren't check in.
+**/*.testing/ # Folders generated by tests will use the *.testing extension so they aren't checked in.
src/Chapter01/HelloWorld/
# Don't ignore DLLs in the src/Shared/Lib folder (which are frequently ignored by default in the .gitignore_global file)

MODIFY
Directory.Build.targets
Directory.Build.targets
"WarningsNotAsErrors" so they don't trigger a failure in the build. -->
<WarningsNotAsErrors>$(ExpectedWarnings)</WarningsNotAsErrors>
</PropertyGroup>
+ <ItemGroup>
+ <Compile Remove="**\*.testing\**" />
+ </ItemGroup>
<Target Name="VSTestIfTestProject">
<CallTarget Targets="VSTest" Condition="'$(IsTestProject)' == 'true'" />
</Target>

MODIFY
src/Chapter10.Tests/Listing10.23.RegisteringAFinalizerWithProcessExit.Tests.cs
src/Chapter10.Tests/Listing10.23.RegisteringAFinalizerWithProcessExit.Tests.cs
@@ -19,7 +19,7 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter10.Listing10_23.Tests
static string Ps1Path { get; } =
Path.GetFullPath(Path.Join(Ps1DirectoryPath, "Listing10.23.RegisteringAFinalizerWithProcessExit.ps1"), Environment.CurrentDirectory);
- private const string ProjectName = "ProcessExitTestProgram.g";
+ private const string ProjectName = "ProcessExitTestProgram.testing";
[ClassInitialize]
public static void ClassInitialize(TestContext testContext)

MODIFY
src/Chapter10/Listing10.13.MakingTypesAvailableExternally.ps1
src/Chapter10/Listing10.13.MakingTypesAvailableExternally.ps1
@@ -13,8 +13,8 @@ if('traceLevel' -notin $PSBoundParameters.Keys) {
"@
}
-[string]$LibraryProjectName = 'GeoCoordinates.g'
-[string]$ConsoleProgramProjectName = 'GeoCoordinateProgram.g'
+[string]$LibraryProjectName = 'GeoCoordinates.testing'
+[string]$ConsoleProgramProjectName = 'GeoCoordinateProgram.testing'
[xml]$directoryBuildPropsXml = ([xml](Get-Content "$PSScriptRoot/../../Directory.Build.props"))
[string]$langVersion = $directoryBuildPropsXml.Project.PropertyGroup.LangVersion

MODIFY
src/Chapter10/Listing10.23.RegisteringAFinalizerWithProcessExit.ps1
src/Chapter10/Listing10.23.RegisteringAFinalizerWithProcessExit.ps1
@@ -17,7 +17,7 @@ if(($TraceLevel -eq $null) -and 'TraceLevel' -notin $PSBoundParameters.Keys) {
}
#$LibraryProjectName = 'ProcessExit'
-$ConsoleProgramProjectName = 'ProcessExitTestProgram.g'
+$ConsoleProgramProjectName = 'ProcessExitTestProgram.testing'
[string]$projectDirectory = (Join-Path $PSScriptRoot $ConsoleProgramProjectName)

Change extension on test/generated folders to "*.testing"