Can't complete directxtk installation - visual-studio-2022

I am trying to add the directxtk Project to Visual Studio 2022, i followed this guide: https://github.com/microsoft/DirectXTK/wiki/DirectXTK#adding-to-a-vs-solution, i choose the "DirectXTK_Desktop_2022" Project, add it to my Solution then i go to Properties but i don't have the "Common Properties > References" menu:
Instead i have this:

Related

How to customize C# .NET Framework Manifest without Visual Studio

I primarily use JetBrains Rider, which appears to lack the option to add a manifest (though my installation of Visual Studio mysteriously lacks "Application Manifest" under the "Add Item" menu anyhow).
So, I created app.manifest and filled it with the desired XML (in my case, it's a vanilla manifest with the classic <requestedExecutionLevel level="requireAdministrator" uiAccess="false"/>)... but it didn't work.
I Changed Build Action to EmbeddedResource... but it still didn't work.
I renamed the file to sandbox.exe.manifest... still nothing!
If I open the exe in a text editor, I see two manifests - mine, and the default.
What step am I missing?
You have to specify manifest file name in the project file. Open corresponding csproj file (Solution Explorer -> select your project -> F4 \ Edit sources) and add the next line to the global properties group :
<ApplicationManifest>app.manifest</ApplicationManifest>
For more information you can read this question:
How can I embed an configuration-specific manifest file in my c# app?

Visual Studio 2017 VSIX with ASP.NET Core 2 Web Application template just installs a blank project

I followed the "Getting Started with the VSIX Project Template" Microsoft documentation to create an ASP.NET Core 2 Web Application template and after running the VSIX file I have the new project template listed but when I create a new project with it none of the files are there. It is just an empty project. My attempt can be found here: https://github.com/DrewBrasher/ExampleAspNetCoreTemplate
The steps in the documentation are:
Create a project template.
a. Open the project from which to create a template. This project can be of any project type.
b. On the Project menu, click Export Template. Complete the steps of the wizard. A .zip file is created in %USERPROFILE%\My Documents\Visual Studio \My Exported Templates.
Create an empty VSIX project. On the File menu, click New and then click Project. Select either Visual Basic or Visual C#. Under the selected node, select Extensibility, and then select VSIX Project.
Add the .zip file to the project. Set its Copy to Output Directory property to Copy Always.
In the Solution Explorer, double-click the source.extension.vsixmanifest file to open it in the VSIX Manifest Designer, and then make the following changes:
Set the Product Name field to My Project Template.
Set the Product ID field to MyProjectTemplate - 1.
Set the Author field to Fabrikam.
Set the Description field to My project template.
In the Assets section, add a Microsoft.VisualStudio.ProjectTemplate type and set its path to the name of the .zip file.
Save and close the source.extension.vsixmanifest file.
Build the project.
In the output directory, double-click the .vsix file.
A VSIX Installer message box appears. Follow the instructions to install the extension.
Close Visual Studio and then re-open it.
I believe this is a Visual Studio bug but I have found a workaround. After exporting the project as a template (step 1b), you need to:
Extract the zip file.
Add this to the "TemplateData" section of the .vstemplate file:
<CreateInPlace>true</CreateInPlace>
Compress the files back into a zip file.
Continue with the rest of the documentation.
Sources:
https://developercommunity.visualstudio.com/content/problem/21751/creating-new-project-from-vs-2017-rc-exported-temp-1.html
Exported project template in VS2017 misses source files

TypeScript 0.9.* VisualStudio TS5037: Cannot compile external modules unless the '--module' flag is provided

I do get the TypeScript compiler error TS5037: Cannot compile external modules unless the '--module' flag is provided.
I am using TypeScript 0.9.1.1 und Visual Studio 2012.
Where can I set the --module option in Visual Studio?
Web Essential seems to no longer support this option in the dialog.
Thankx, Harry
Update:
I have a configuration file (config.ts) for my project. This file contains many statements as the following:
export var loggedInUserId: number = 0;
There are no other statements as the one before. Do I have to define a class or module around it?
I was having this problem in Visual Studio 2013, even with that setting above set correctly. It turns out there's a project-level setting as well. If you go to Project Settings on the project with TypeScript (highlight the project and type Alt+Enter), then go to the TypeScript Build tab, and select AMD under "Module System"
You can find the option for non project files here (Tools - options - Editor - TypeScript):
For my project based work I use grunt : https://github.com/basarat/grunt-ts

Visual Studio 2008: No Build Events folder on the project Properties page

I am using Visual Studio 2008 Professional to build a VB.NET console application. I have a text file that I want to copy to the output directory after a build. I would like to create a build event to do that, but I do not see a "Build Events" folder on the property page. Is there a setting where I can get this folder? Or, is there another way I can set up a post-build event to copy a file to the output directory?
The folders I see on the Properties page:
Application
Compile
Debug
References
Resources
Services
Settings
Signing
My Extensions
Security
Publish
Compile tab. Scroll down and right, click the Build Events button.
But, no need to do it that way, just add it to your project with Project + Add Existing Item. Select it and in the Property window set Build Action to "Content" if you want it deployed, Copy to Output to "Copy if newer".

How to create a uninstall command for a Windows-based application in the Application Folder

Can anyone explain to me how to create a uninstall command for a Windows-based application in the Application Folder when creating a new setup project in visual studio 2008.
I've found info on the net but nothing helping me so far. If you could supply me with links or instructions it would be great.
Thanks.
In Visual Studio.NET:
File > Add Project > New Project > Setup & Deployment Project > Setup Project
(Enter name and location)
Add (right-click in Application Folder > Add > Project Output):
Primary Output
If an error occurs about files that should be excluded > In Solution Explorer select your Setup project > Exclude those files (right-click > exclude)
Build > Build ’name project’
In Windows:
Create an Uninstall.bat file containing:
C:\WINDOWS\system32\MsiExec.exe /I{productcode}
(Path depends of your Windows version, check where your system32 folder is located)
(You’ll find the productcode in Visual Studio.NET > Tab Properties in the setup project you’ve just created)
Open the setup project in Visual Studio.NET if you closed it
Add (right-click in Application Folder):
Add > Project Output > File > Uninstall.bat
Create New Shortcut > Application Folder > Primary Output (enter a name)
Create New Shortcut > Application Folder > Uninstall.bat (enter a name)
Add > File > add .ico files you want to use for the shortcuts
Shortcuts properties > ‘icon’ property (use the icons you’ve just added)
Move the shortcuts to User’s Desktop/User’s Programs Menu (you can also create subfolders)
Build > Rebuild ’name project’
The setup is ready now. You can install via Setup.exe (default it’s located under the folder ‘Debug’, you can change it in Visual Studio.NET - right-click your setup project > properties > Output file name). The shortcuts will be added automatically in the coresponding folders (desktop/start menu).
You can uninstall the program via Uninstall.bat (or via shortcut naar Uninstall.bat)
The command line for uninstalling using msiexec :
msiexec /uninstall {GUID}
{GUID} is the Product Code of the setup package and you can find that in your Setup Project Properties.
The uninstall program can be as simple as a bacth with that command or maybe a separate application, executing the command and performing addional custom cleaning.
L.E. Also, here is Microsoft's online documentation for msiexec.
L.E. Good article giving code snippet for creating a C# application that performs the uninstall
It's much easier is to just add an uninstall shortcut with arguments directly to the setup project instead of creating a batch file or adding code to the main() sub or start form. This should work for any .net language using Visual Studio. I have it working for VB .net using VS2008 for several projects. Here's how:
Go to the file system definitions in the setup project. Right click in the folders section (left pane) and add special folder - System Folder.
Select the newly added System Folder in the left pane, and in the right hand pane, right click and select "add file."
Add the file msiexec.exe that is in your system32 folder (Most likely c:\windows\system32)
Go back to the left pane and drill down in the User's Programs Menu folder to the folder you want to hold the uninstall shortcut. Select it.
In the right pane right click and select "create new shortcut." In the dialog box, click on System Folder and then the msiexec.exe file. Click OK and then rename the shortcut to whatever you want like "Uninstall MyProgram."
Right click on the new shortcut and select "properties window."
In the properties window, in the arguments variable type /x [ProductCode] (there is a space between the /x and [ProductCode] You can use other switches instead of /x, if you want - check out the available switches for msiecec.exe.
That's it. Now when you run the setup project it will add a shortcut to your user's program menu to uninstall the program. One other comment, on the compile you will get a warning that msiexec.exe should be excluded because its source file is under Windows System File Protection. Just ignore this warning.
i too don't know how to find this elusive product code, but to answer your other question on removing the folder I found this document that may help you out
http://www.codeproject.com/KB/install/NET_Uninstaller.aspx
You can get this product code from your application setup project in properties window of
your
setup project
. [Select project node in Solution Explorer and click F4 and copy the Product code.]
This looks similar to ... {21F66170-1C81-40E1-AB96-3303FF098425}