Skip to content

Instantly share code, notes, and snippets.

@AlexBAV
AlexBAV / guid.h
Last active April 14, 2024 12:50
Constexpr GUID parsing (parsing string GUIDs at compile-time)
//-------------------------------------------------------------------------------------------------------
// constexpr GUID parsing
// Written by Alexander Bessonov
//
// Licensed under the MIT license.
//-------------------------------------------------------------------------------------------------------
#pragma once
#include <stdexcept>
#include <string>
@AlexBAV
AlexBAV / Fix-NuGetPackage.ps1
Last active November 11, 2018 14:51
Script to fix NuGet packages exported by vcpkg.exe export --nuget command
# Fix-NuGetPackage.ps1
# This script fixes NuGet packages exported by vcpkg.exe utility
# In the current version (see issue #3954) multiple exported NuGet packages
# cannot be used in a single project
#
# This script fixes it by introducing a "namespace" to MsBuild properties
# used by exported NuGet packages
# First parameter is a NuGet package name with extension
# Second parameter is a namespace prefix (should be valid MsBuild property name)