Install qt-vs-addin-msvc2015-2.0.0-beta in Visual Studio 2015 - qt

I want to install the Qt addin for Visual Studio 2015.
From the Qt site I've downloaded the file qt-vs-addin-msvc2015-2.0.0-beta, that's a zip file, but when I unzip it I've a bunch of files and folders and I don't know how to install it.
How can I install this extension?

I am not sure where you got the zip file, you can download the vsix file from here, which can be directly installed in VS as an extension.

Internet Explorer (I'm using v11) and, according to the comments above, the MS Edge browser, rename .vsix files to .zip files when they are downloaded from the qt.io website. This is especially confusing because .vsix files are, in fact, valid .zip files; however, extracting their contents into a folder doesn't provide the user with any method of installing them.
Change the extension on the files from .zip to .vsix and double-click the resulting icon. That should launch the vsix installer.

Related

How to install .NET Core SDK 2.1.401 after having installed version 2.1.500?

I am running Windows 7 Home Premium 64-bit.
I updated my .NET Core installation to the latest version 2.1.500 a few days ago.
Shortly after, I wanted to play with the source code for MS Build, so I cloned the MS Build git repo and ran their build.cmd file as instructed.
But it kept failing telling me it wasn't able to download the per-requisite .NET Core version 2.1.401.
C:\Source\Of\MSBuild> build.cmd
dotnet-install: Downloading link:
https://dotnetcli.azureedge.net/dotnet/Sdk/2.1.401/dotnet-sdk-2.1.401-win-x64.zip
dotnet-install: Cannot download:
https://dotnetcli.azureedge.net/dotnet/Sdk/2.1.401/dotnet-sdk-2.1.401-win-x64.zip
dotnet-install: Downloading legacy link:
https://dotnetcli.azureedge.net/dotnet/Sdk/2.1.401/dotnet-dev-win-x64.2.1.401.zip
Exception calling "Invoke" with "0" argument(s):
"Failed to download
https://dotnetcli.azureedge.net/dotnet/Sdk/2.1.401/dotnet-dev-win-x64.2.1.401.zip."
yada yada yada yada...
So I downloaded the zip file https://dotnetcli.azureedge.net/dotnet/Sdk/2.1.401/dotnet-sdk-2.1.401-win-x64.zip manually, and unzipped it to find a dotnet.exe in it.
First thinking that it was a set-up file, I double-clicked it. It appeared and disappeared quickly.
Then, after a few failed attempts, I suspected it was indeed the SDK itself and wasn't an install-able set-up. So, I checked the folders in the unzipped file and they matched exactly the folders in my C:\Program Files\dotnet folder (see the picture at the bottom of this question).
So, now, I don't know how to have this version of .NET Core that I just downloaded (v 2.1.401) co-exist with the latest version 2.1.500. I do see that the C:\Program Files\dotnet\sdk\ folder has several versions exist side by side:
C:\Program Files\dotnet\sdk>dir /b
1.0.0
1.0.0-preview2-003131
2.1.500
NuGetFallbackFolder
So, should I just go ahead and mess around with my folders manually? That is, should I just copy and paste the folders I downloaded and merge them with what I have? See below.
The contents of the two folders needn't have to be merged. One must download the .NET Core installer instead.
Two issues need to be addressed in answering this question.
I had downloaded the binaries in a zip file and not an installer. I was led to install the binaries because the URL I saw on the console when I ran the build script pointed to the binaries and not to the installer.
.NET Core comes in two kinds of packages:
a. MSI installers; and
b. Zip files containing the binaries. These are useful when you want to hold a private copy of .NET core in your application. Just like NPM packages have private installations in contrast to public/global ones. Just like you hold private assemblies (CopyLocal = True) of the .NET framework within your application in contrast with references them from the GAC or the Reference Assemblies folder.
Look at this SDK download page on the Microsoft website. It lists both, the binaries and the installers for each version of the SDK and the runtime.
A Powershell script in the MS Build build process downloads the zip file containing only the binaries and it holds this version of the .NET Core privately. The version it is looking for is mentioned in the DotNetCliVersion property in the Version.props file.
From build1.ps
function Build {
if (![string]::IsNullOrEmpty($DotNetCoreSdkDir) -and
(Test-Path -Path $DotNetCoreSdkDir)) {
$env:DOTNET_INSTALL_DIR = $DotNetCoreSdkDir
}
else {
InstallDotNetCli
}
$env:DOTNET_HOST_PATH = Join-Path $env:DOTNET_INSTALL_DIR "dotnet.exe"
...

Source of qt5 cmake Config-file Packages

Trying to build qt5 with buildroot. I need to download the source so that everything is compiled through the cross-compiler.
One of my project relies on the 'Config-file Packages' (CMake helper config file) provided by Qt5 in the binary tarball at this location Qt5.8.0/5.8/gcc_64/lib/cmake.
Problem: I can't find that folder anywhere in the source. When I take one example file (e.g. Qt5Config.cmake), I can't find any git repo hosting it.
Had a look at Ubuntu packages and it is being distributed in qtbase5-dev. When I look at this package documentation, it says it is using qtbase-opensource-src 5.5.1+dfsg-16ubuntu7.4 as the source package. Had a look at the source package for 5.8 but the cmake files are not there.
I could upload those files in an ad-hoc git repo, but that just seems weird that those files are not hosted by the qt repo.
What am I missing?
The cmake files are generated while build. On Linux the results are installed to qt/lib/cmake.

Where can I find the QTC_SOURCE files for Qt Creator plugins

I am referring to the files I need to point to in QTC_SOURCE variable.
I don't have admin access so I can't install the -dev packages as many pages suggest. I would prefer files I can directly download.
You need the Qt Creator source code. Download a tarball (.tar.gz or .zip) from here or clone the git repository.

Ajax Control Toolkit, Visual Studio 2013, Nuget: AjaxControlToolkit.dll is missing

I tried to add the actual Ajax Control Toolkit to an .Net 4.5.1 WebSite. All the dependencies seem to be properly installed but the AjaxControlToolkit.dll file is not there.
I tried to uninstall and reinstall the package with the NuGet Console in Visual Studio 2013 and it always looks to be successful, but also always that dll is missing. Also restarting VS did not help.
In the packages.config the entry for the dll with version 8.0.0.0 is there and also in the packages directory there a directory AjaxControlToolkit.8.0.0.0. but only the AjaxControlToolkit.8.0.0.0.nupkg and the readme.txt files are there.
Any idea, what went wrong or what I could do?
Start a command prompt and run dir c:\ajaxcontroltoolkit.dll /s to see if the file is somewhere on your system. If it is, then copy it to the project's bin folder.
If it's not on your hard drive, go to http://ajaxcontroltoolkit.codeplex.com/releases/view/116091, download the version in question, and copy the .dll from the package to the project's bin folder.
In the back of my mind it seems that I ran into this a couple of weeks ago, also, so there may be a bug in NuGet.
Version 8.0.0.0 of the NuGet package is broken.
Update 15.1.2 is available.
P.S. Dependencies are extracted into separate packages (AjaxControlToolkit.HtmlEditor.Sanitizer, AjaxControlToolkit.StaticResources)

how to configure and deploy QT to run platform independently?

I am new to QT. I am using "qt creator 5" with "opencv" on ubuntu 13.04. I want to run program written and executed on my machine is to be executed as well on other windows and Ubuntu machine.
thanks in advance
On Linux:
You should place Qt so files along the release version of your executable. These are libQtCore.so, libQtGui.so and possibly the ones for other modules that you have used. These so files are in your installed Qt Directory in lib folder or in director /usr/lib/i386-linux-gnu. If you are using plugins you should place their so files in a folder named plugins beside your binary. In case of using icons and images you should ship their so files like libqico.so and libqsvg.so in a folder named imageformats.
On Windows:
You can compile your code on Windows using Qt Creator and Microsoft Visual C++ Compiler.
You should place Qt DLLs along the release version of your executable. These are Qt5Core.dll, Qt5Gui.dll and possibly the ones for other modules that you have used. These dll files are in your installed Qt Directory in bin folder. You should also place msvcr100.dll and msvcp100.dll in case you are using MSVS2010. If you are using plugins you should place their dll in a folder named plugins beside your exe. In case of using icons and images you should ship their dlls like qico.dll and qsvg.dll in a folder named imageformats.

Resources