Feeling jealous of the Windows Rust developers that can embed a Windows manifest
in their code with /MANIFESTINPUT
? Why not embed the manifest directly into
your source code using inline assembly?
Download the package and dependencies:
b0a0692da1034339b76dce1c298a1e42_License1.xml
andMicrosoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle
from https://github.com/microsoft/winget-cli/releases/tag/v1.2.10271Microsoft.VCLibs.x64.14.00.Desktop.appx
from https://docs.microsoft.com/en-us/troubleshoot/developer/visualstudio/cpp/libraries/c-runtime-packages-desktop-bridge.Microsoft.UI.Xaml.2.7.appx
from https://www.nuget.org/packages/Microsoft.UI.Xaml/2.7.2 by choosing “Download package”, renaming it to.zip
once downloaded, and extracting the fileappx
file fromtools/AppX/x64/Release
.
Install it globally with:
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
import org.apache.tools.ant.BuildEvent | |
import org.apache.tools.ant.BuildListener | |
plugins { | |
id 'war' | |
} | |
ext { | |
jettyKey = 'f4f2aada-6224-4480-b2f4-b0063c0eb8a0' | |
} |
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
package com.example; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; | |
import org.springframework.util.ClassUtils; | |
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter; | |
import org.springframework.web.servlet.mvc.Controller; | |
/** |
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
Compiled (c1) 34 6 nmethod nz.geek.carey.unsafe.abstractclasses.TestClass::set (7 bytes) | |
total in heap [0x022ae748,0x022ae994] = 588 | |
relocation [0x022ae81c,0x022ae84c] = 48 | |
main code [0x022ae850,0x022ae8d0] = 128 | |
stub code [0x022ae8d0,0x022ae8fc] = 44 | |
oops [0x022ae8fc,0x022ae904] = 8 | |
scopes data [0x022ae904,0x022ae930] = 44 | |
scopes pcs [0x022ae930,0x022ae990] = 96 | |
dependencies [0x022ae990,0x022ae994] = 4 | |
Loaded disassembler from hsdis-i386.dll |
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
def assertThrows[A <: Throwable: ClassTag](fn: => Unit) { | |
val ct = classTag[A] | |
try { | |
fn | |
fail("Expected " + ct) | |
} catch { | |
case ct(e: Throwable) => // ok | |
} | |
} |