This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--https://stackoverflow.com/questions/5183801/black-background-for-xaml-editor--> | |
<Application | |
... | |
xmlns:componentModel="clr-namespace:System.ComponentModel;assembly=PresentationFramework"> | |
... | |
<Application.Resources> | |
... | |
<Style TargetType="Control"> | |
<Style.Triggers> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Best solution (to copy to .csproj file) | |
- Runs after packing | |
- RoboCopy needs space after path arg e.g "..\df sd " if path has spaces in it otherwise do not include space. | |
- /XO ignores newer files in source | |
- /NFL /NDL /NJH partially removes RoboCopy output | |
- Since RoboCopy had different exit codes than MSBuild and many don't indicate error; need last two lines | |
<Target Name="PostPack" AfterTargets="Pack"> | |
<Exec Command=" | |
set source="$(ProjectDir)$(OutDir).. "
 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<TargetFrameworks>netstandard2.0;net47</TargetFrameworks> | |
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);CopyProjectReferencesToPackage</TargetsForTfmSpecificBuildOutput> | |
</PropertyGroup> | |
<ItemGroup> | |
<ProjectReference Include="..\ClassLibrary2\ClassLibrary2.csproj" PrivateAssets="all" /> | |
<ProjectReference Include="..\ClassLibrary3\ClassLibrary3.csproj" Condition="'$(TargetFramework)' == 'net47'" PrivateAssets="all" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#nullable enable | |
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Linq; | |
using System.Management; | |
using System.Reactive.Linq; | |
using System.Reactive.Subjects; | |
/// <summary> |