Visual Studio – Trigger a xUnit test run after project build event

To trigger a xUnit test run after a successful build,
add this to the project “Build Events” / “Post-build event command line:”

"$(SolutionDir)\packages\xunit.runner.console.2.2.0\tools\xunit.console.x86.exe" "$(TargetPath)"

(You need xUnit runner console nuget package installed for this, above is for the 2.2.0 version).
Will produce something similar to this in the Output window “Build”:

 xUnit.net Console Runner (32-bit .NET 4.0.30319.42000)
 Discovering: MyApp.UnitTests 
 Discovered: MyApp.UnitTests 
 Starting: MyApp.UnitTests 
 Finished: MyApp.UnitTests 
=== TEST EXECUTION SUMMARY ===
 MyApp.UnitTests Total: 8, Errors: 0, Failed: 0, Skipped: 0, Time: 1,120s

Docs:
https://xunit.github.io/docs/getting-started-desktop.html#run-tests

Awesome .NET LibHunt – search .NET libraries and nuget packages with comparision

Your go-to .NET Toolbox. A collection of Awesome .NET libraries, tools & frameworks. 549 projects organized into 93 categories.

Great tool for searching an comparing .NET libraries and nuget packages.
Can for example compare 2 libraries to each other:
https://dotnet.libhunt.com/project/fluentassertions/vs/shouldly?rel=cmp-lib

Source: Awesome .NET

.NET Core Overview Crash Course (on Linux – but applicable on other systems)

With .NET being open source, you can also install and use the .NET Framework on your Linux machine with multiple languages, such as C#, F#, and Visual Basic (coming soon). This Refcard guides you through productively using .NET on Linux, from installation to debugging. You will find an architectural overview, tips for using the new Command Line Interface (CLI), and tools and helpful settings as they relate to your development efforts. This Refcard also covers building MVC web sites, RESTful services, and standalone applications.

Source: .NET on Linux – DZone – Refcardz

How do I get NuGet to re-install/update all the packages in the packages.config?

Reinstall all packages in project:
Update-Package -reinstall -Project YourProjectName
Reinstall package “Antlr” in project:
Update-Package -reinstall Antlr -Project YourProjectName

See more here:

The following command will update all packages in every project to the latest version available from nuget.org.
Update-Package
You can also restrict this down to one project.
Update-Package -Project YourProjectName
If you want to reinstall the packages to the same versions as were previously installed then you can use the -reinstall argument with Update-Package command.
Update-Package -reinstall
You can also restrict this down to one project.
Update-Package -reinstall -Project YourProjectName
The -reinstall option will first uninstall and then install the package back again into a project.
Or, you can update the packages using the Manage Packages dialog.

Source: How do I get NuGet to install/update all the packages in the packages.config? – Stack Overflow

 

Free Microsoft Virtual Machines

Download free virtual machines to test Microsoft Edge and IE8 to IE11:
Source: Free Virtual Machines from IE8 to MS Edge – Microsoft Edge Development

Get a Windows 10 development environment:

Start building Universal Windows Platform apps quickly using a virtual machine.

Start coding sooner with a virtual machine prepped for Windows 10 development. It has the latest versions of Windows, the developer tools, SDKs, and samples ready to go:

https://developer.microsoft.com/en-us/windows/downloads/virtual-machines