PackageManagement\Install-Package : No match was found for the specified search criteria and module name SitecoreInstallFramework - powershell-5.0

I am getting below error while installing sitecore framework, I have register sitecore repository with https://sitecore.myget.org/F/sc-powershell/api/v2 source location.
I am using powershell 5.1
installing sitecore 9.0

Please check the SitecoreInstallFramework in installed and present at C:\Program Files\WindowsPowerShell\Modules. If not install and import it.
You can also install it manually if facing issue installing it through sitecore.myget.
Installing the Framework Manually
As an alternative to using the MyGet feed you can also install it manually. The Sitecore Installation Framework is also provided as a zip download. But if you manually install the Sitecore Installation Framework, you must first download and install the Sitecore Fundamentals package.
You can download the Sitecore Fundamentals and the Sitecore Installation Framework packages from the Sitecore Developer site. Both downloads are available on the page with the latest version of the platform.
To install both modules you will need to extract the packages and copy the files.
Extract the Sitecore Fundamentals.ZIP package to the following folder:
C:\Program Files\WindowsPowerShell\Modules\SitecoreFundamentals
Extract the Sitecore Install Framework.ZIP package to the following folder:
C:\Program Files\WindowsPowerShell\Modules\SitecoreInstallFramework
Please refer:- https://community.sitecore.net/technical_blogs/b/technical-marketing/posts/installing-sitecore-9_3a00_-install-the-sitecore-installation-framework-module

Related

How can I install a newer MSBuild version?

I am trying to build Microsoft.AspnetCore.Identity from sources. The instructions are here: https://github.com/dotnet/aspnetcore/blob/master/docs/BuildFromSource.md. I am trying to run their command "restore.cmd" and hitting the following error:
error : Version 3.1.10 2 of the .NET Core SDK requires at least version 16.3.0 of MSBuild. The current available version of MSBuild is 16.0.46
1.62831. Change the .NET Core SDK specified in global.json to an older version that requires the MSBuild version currently available.
The error message's suggestion of changing the .Net Core SDK version seems absurd. Surely the solution is to install MSBuild 16.3.0. But how do I do that?
As an aside which may or may not be relevant, the instructions also have a script for installing the "exact required" version of VS. But it seems to install a new one that goes side-by-side with my existing version. Their "startvs" command then starts the existing one, rather than the new one. It has to be better to add everything needed to the existing installation. But I'm missing how to add MSBuild 16.3.0.
The error message's suggestion of changing the .Net Core SDK version
seems absurd. Surely the solution is to install MSBuild 16.3.0. But
how do I do that?
1) Please make sure that you have run ./eng/scripts/InstallVisualStudio.ps1 to install the required tools.
2) If you have VS2019, try to enable the option Use previews of the .NET Core SDK(require restart) under Tools--> Options-->Environment-->Preview Features.
a) If you have VS2019 at your agent, just update it to the latest version so that you will get the latest version about MSBuild.
b) Download the latest version of Build Tool for VS2019. You can download it under Tools for Visual Studio 2019 from this link. If you have already downloaded it, please update it to the latest version in vs installer. Also, make sure that you have install the workload Net Core build tools. After that, you can build net core projects with it.
3) Then try to run .\restore.cmd in developer command prompt.

How to find and use downloaded packages from nuget in vs2017 software (and in an asp.net core project)?

In Visual Studio 2017, I use the following command to install a package like .jQuery.Unobtrusive.Validation:
Install-Package Microsoft.jQuery.Unobtrusive.Validation -Version 3.2.11
And the operation is done successfully.
Now I'm looking for files on wwwroot but can not find anything? what is the problem?
Use LibMan :
In Solution Explorer, right-click the project folder in which the files should be added. Choose Add > Client-Side Library.
Type jquery-validation-unobtrusive#3.2.11 in Library input area .
Click Install , the library will install to target location . The default is wwwroot/lib/jquery-validation-unobtrusive/

Unable to Install Microsoft.Toolkit.Uwp.UI.Controls 3.0.0

Using NuGet Package Manager, I get this error message:
Could not install package 'Microsoft.Toolkit.Uwp.UI.Controls 3.0.0'.
You are trying to install this package into a project that targets 'native,Version=v0.0',
but the package does not contain any assembly references or content files that are compatible with that framework.
For more information, contact the package author. 0
The app is a Blank App (C++/winRT). Visual Studio 15.8.0 Preview 4.0.(10.0.17134.0, 10.0.17704.0)
Despite it's name, the Windows Community Toolkit is only intended for C# developers.

How to install Nuget package on Server without internet connection or local repo?

I have a build server that does not have internet access and I want to install this package on it.
I have downloaded nuget.exe and copied it to the server and added it to my PATH and also copied the nuget package above to the server and tried to install with nuget install microsoft.data.tools.msbuild.10.0.61026.nupkg
But the install fails with
Unable to load the service index for source https://api.nuget.org./v3/index.json.
Is there a way to simply install a nupkg file without a repo? The server is Windows Server 2012 R2.
I am assuming you are using NuGet 3 since this used to work in NuGet 2.
Disabling all your online package sources should allow you to install a NuGet package locally.
So you can either change your %APPDATA%\NuGet\NuGet.Config file so it has no package sources. Or you could use the -source parameter, specifying a package source that works offline, when calling install so the online package source is not used.
I was in the wrong folder when I ran the command. I needed to be one folder above and then specify the folder as the source. Worked.
nuget install -source C:\NugetDownloads microsoft.data.tools.msbuild -OutputDirectory E:\Nuget

zendstudio run phpunit with selenium

Zend Studio 10.6.1 on Windows 8.1:
How to run PHPUnit Selenium inside Zend Studio (Version 10.6.1)?
Zend Studio 10.6.1 has a built-in version of PHPUnit 3.7, but no phpunit-selenium package installed.
I tried installing phpunit-selenium in my PHP project, without success.
installed as a phar archive (phpunit.phar downloaded from phpunit website).
installed with composer in my PHP project (require: phpunit-selenium >= 1.3.3).
unpacked the phar archive and including it in my project.
installed a complete current PHPUnit package (Version 4.1) in my project.
The effects were that either the PHPUnit Selenium classes could not be found, or that the tests would not run, or that PHPUnit didn't run at all anymore from within Zend Studio.
I'll answer this question by describing how I worked around it to get it to work finally.
A clean solution would be to edit composer.json in the built-in PHPUnit of Zend Studio.
The path to the built-in PHPUnit of Zend Studio under Windows is:
c:\Program Files (x86)\Zend\Zend Studio 10.6.1\plugins\com.zend.php.phpunit_10.6.1.v20140329-2132\resources\vendor\phpunit\phpunit
and / or:
c:\Program Files (x86)\Zend\Zend Studio 10.6.1\plugins\com.zend.php.phpunit_10.6.1.v20140329-2132\resources\vendor\phpunit\phpunit.org
There seem to be two identical versions.
However, after some dabbling around with composer, I couldn't manage to resolve the error messages, and gave up on it. I hope this can be solved in the future because it would be the cleaner solution.
Here is a successful Workaround:
install phpunit-selenium via composer in project;
copy the files over to the built-in PHPUnit of Zend Studio;
edit the file vendor\composer\autoload_classmap.php under the project directory:
find the lines that start with 'PHPUnit_Extensions_Selenium' and copy them to clipboard;
edit the file c:\Program Files (x86)\Zend\Zend Studio 10.6.1\plugins\com.zend.php.phpunit_10.6.1.v20140329-2132\resources\vendor\composer\autoload_classmap.php:
paste in the copied lines that start with 'PHPUnit_Extensions_Selenium';
remove phpunit-selenium from composer in project and from project;