Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.NET 4.7.1 support #1868

Closed
johnkors opened this issue Oct 18, 2017 · 15 comments
Closed

.NET 4.7.1 support #1868

johnkors opened this issue Oct 18, 2017 · 15 comments

Comments

@johnkors
Copy link

johnkors commented Oct 18, 2017

Similar to #1488 , but for 4.7.1.

Download: https://www.microsoft.com/en-us/download/details.aspx?id=56119

@FeodorFitsner
Copy link
Member

I assume it is related to "Visual Studio 2017 Preview" image where we should install VS 2017 15.5 with .NET 4.7.1 targeting support?

@johnkors
Copy link
Author

Hm, I'm just using the dotnet sdk directly, and that worked even in the 2015 image. But yeah - I guess it relates to both the 2015 and 2017 appveyor images..?

@jp2masa
Copy link

jp2masa commented Oct 22, 2017

The .NET Framework 4.7.1 targeting pack can be installed separately, but VS 2017 15.5 will include support to target .NET Framework 4.7.1 without any additional installation.

@FeodorFitsner are there any docs about the "Visual Studio 2017 Preview" image?

@waynebrantley
Copy link

@FeodorFitsner You can just install 4.7.1 sdk on the normal image. Should have no impact.

@FeodorFitsner FeodorFitsner added this to the next-images-update milestone Oct 26, 2017
@tompazourek
Copy link

tompazourek commented Nov 1, 2017

I know it's only been like 2 weeks since it's been released, but is there some expected time frame for when we could start using .NET 4.7.1 with AppVeyor?

@FeodorFitsner
Copy link
Member

It's scheduled to the "next images update" milestone which is going to be end of this or next week.

@waynebrantley
Copy link

@FeodorFitsner Is this still expected this week sometime?

@FeodorFitsner
Copy link
Member

Yearly next week.

@wongsyrone
Copy link

One naive method is:

"C:\Program Files\Git\mingw64\bin\curl" -O https://download.microsoft.com/download/9/0/1/901B684B-659E-4CBD-BEC8-B3F06967C2E7/NDP471-DevPack-ENU.exe

NDP471-DevPack-ENU.exe /q /norestart

exit /B 0

and execute this batch file on before_build hook.

@waynebrantley
Copy link

@FeodorFitsner Any chance of getting this ASAP?

@FeodorFitsner
Copy link
Member

Images are being tested right now. Will deliver them tomorrow or early Friday.

@felixfbecker
Copy link

Currently prevents me from using a .NET Standard 2.0 DLL in PowerShell: https://github.com/PowerShell/PowerShell/blob/master/docs/cmdlet-example/command-line-simple-example.md#using-a-net-standard-20-based-binary-module-in-windows-powershell

Import-Module : Could not load file or assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.
At C:\projects\ps-nvm\nvm.psm1:5 char:1
+ Import-Module (Join-Path $PSScriptRoot 'SemVer.dll')
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Import-Module], FileNotFoundException
    + FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.PowerShell.Commands.ImportModuleCommand

@felixfbecker
Copy link

felixfbecker commented Nov 18, 2017

@wongsyrone your workaround didn't work for me unfortunately

Get-ChildItem "HKLM:SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full\"
    Hive: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full
Name                           Property                                                                                                                                                                                              
----                           --------                                                                                                                                                                                              
1033                           CBS           : 1                                                                                                                                                                                     
                               Install       : 1                                                                                                                                                                                     
                               Release       : 460805                                                                                                                                                                                
                               Servicing     : 0                                                                                                                                                                                     
                               TargetVersion : 4.0.0                                                                                                                                                                                 
                               Version       : 4.7.02053                                                                                                                                                                             
Invoke-WebRequest -OutFile .\NDP471-DevPack-ENU.exe https://download.microsoft.com/download/9/0/1/901B684B-659E-4CBD-BEC8-B3F06967C2E7/NDP471-DevPack-ENU.exe
.\NDP471-DevPack-ENU.exe /norestart
Get-ChildItem "HKLM:SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full\"
    Hive: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full
Name                           Property                                                                                                                                                                                              
----                           --------                                                                                                                                                                                              
1033                           CBS           : 1                                                                                                                                                                                     
                               Install       : 1                                                                                                                                                                                     
                               Release       : 460805                                                                                                                                                                                
                               Servicing     : 0                                                                                                                                                                                     
                               TargetVersion : 4.0.0                                                                                                                                                                                 
                               Version       : 4.7.02053     

@wongsyrone
Copy link

@felixfbecker

It's expected. The installer requires rebooting your system to take effect. But if you do reboot, boom, everything is gone. That's why I add /norestart to the cmdline. And use exit /B 0 to cheat the CI to ignore any ERRORLEVEL set by the installer. If you do check the error code, it means you have to reboot your system.

In fact, the installer installs two components: runtime and develop modules. I just need develop modules.

@FeodorFitsner
Copy link
Member

.NET 4.7.1 has been deployed to build workers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants