Skip to content

Instantly share code, notes, and snippets.

@chefkoch
chefkoch / hosts
Created March 26, 2020 00:30 — forked from consti/hosts
/etc/hosts to block shock sites etc.
# This hosts file is brought to you by Dan Pollock and can be found at
# http://someonewhocares.org/hosts/
# You are free to copy and distribute this file for non-commercial uses,
# as long the original URL and attribution is included.
#<localhost>
127.0.0.1 localhost
127.0.0.1 localhost.localdomain
255.255.255.255 broadcasthost
::1 localhost
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<Target Name="BeforeBuild">
<Exec Command='subwcrev "$(SolutionDir)." "$(ProjectDir)Properties\VersionInfo.cs.tmpl" "$(ProjectDir)Properties\VersionInfo.cs"'
Condition="$(CallSubwcrev) != 'false'"/>
</Target>
<PropertyGroup>
<PluginDestination>$(SolutionDir)..\MediaPortal-2\MediaPortal\Bin\MP2-Client\bin\x86\Debug\Plugins\OnlineVideos\</PluginDestination>

The NuGetHelper is a minimalistic commandline application. After it is compiled and started the following steps are done:

  • Search within the parent directories for the repository root, assuming the repository root contains a NuGet.config-file.
  • Search within the parent directories for a .nuget-folder that contains a NuGet.exe-file.
@chefkoch
chefkoch / MSBUILD_Rebuild_Debug_Client.bat
Created May 31, 2013 00:59
Rebuild MP2 Client Debug
xcopy /I /Y .\BuildReport\_BuildReport_Files .\_BuildReport_Files
set xml=Build_Report_Debug_Client.xml
set html=Build_Report_Debug_Client.html
set logger=/l:XmlFileLogger,"BuildReport\MSBuild.ExtensionPack.Loggers.dll";logfile=%xml%
"%WINDIR%\Microsoft.NET\Framework\v4.0.30319\MSBUILD.exe" ..\Source\MP2-Client.sln %logger% /target:Rebuild /property:Configuration=Debug;Platform=x86
BuildReport\msxsl %xml% _BuildReport_Files\BuildReport.xslt -o %html%
@chefkoch
chefkoch / NuGet.targets.xml
Last active December 17, 2015 18:09
This is the default NuGet.targets file, which is being created when enabling NuGet Package Restore within VisualStudio using NuGet 2.5. --- Revision 1 = original --- Revision 2 = Enabled download of NuGet.exe if missing ---- click on Revisions to see the diff
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">$(MSBuildProjectDirectory)\..\</SolutionDir>
<!-- Enable the restore command to run before builds -->
<RestorePackages Condition=" '$(RestorePackages)' == '' ">false</RestorePackages>
<!-- Property that enables building a package from a project -->
<BuildPackage Condition=" '$(BuildPackage)' == '' ">false</BuildPackage>
@chefkoch
chefkoch / tx.targets.xml
Created May 26, 2013 00:11
This is a msbuild file for downloading the TransifexCliente (tx.exe) on demand
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<TransifexClientExePath Condition=" '$(TransifexClientExePath)' == '' ">$(MSBuildThisFileDirectory)tx.exe</TransifexClientExePath>
</PropertyGroup>
<Target Name="CheckPrerequisites">
<SetEnvironmentVariable EnvKey="VisualStudioVersion" EnvValue="$(VisualStudioVersion)" Condition=" '$(VisualStudioVersion)' != '' AND '$(OS)' == 'Windows_NT' " />
<!--
Take advantage of MsBuild's build dependency tracking to make sure that we only ever download nuget.exe once.