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

Build Errors - must add a reference to assembly 'Windows, Version=255.255.255.255 #329

Closed
ghost opened this issue May 13, 2017 · 13 comments
Closed
Labels
bug The issue relates to the wizard not working or a problem with the generated code. Can Close Out Soon Work relating to this issue has been completed.

Comments

@ghost
Copy link

ghost commented May 13, 2017

Fresh Project,
vs2017 64 bit W10 Creative

Getting a number of build errors - kind of asyncAction, Operation, WithProgress etc etc
# Example
The type 'IAsyncAction' is defined in an assembly that is not referenced. You must add a reference to assembly 'Windows, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime'.

# System Info below

Microsoft Visual Studio Enterprise 2017
Version 15.2 (26430.6) Release
VisualStudio.15.Release/15.2.0+26430.6
Microsoft .NET Framework
Version 4.7.02046

Installed Version: Enterprise

Architecture Diagrams and Analysis Tools 00369-90000-00000-AA150
Microsoft Architecture Diagrams and Analysis Tools

Visual Basic 2017 00369-90000-00000-AA150
Microsoft Visual Basic 2017

Visual C# 2017 00369-90000-00000-AA150
Microsoft Visual C# 2017

Visual C++ 2017 00369-90000-00000-AA150
Microsoft Visual C++ 2017

Application Insights Tools for Visual Studio Package 8.6.00404.2
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2017 15.0.30503.0
ASP.NET and Web Tools 2017

ASP.NET Web Frameworks and Tools 2012 4.0.11203.0
For additional information, visit https://www.asp.net/

ASP.NET Web Frameworks and Tools 2017 5.2.50303.0
For additional information, visit https://www.asp.net/

Azure App Service Tools v3.0.0 15.0.30209.0
Azure App Service Tools v3.0.0

Common Azure Tools 1.9
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

JavaScript Language Service 2.0
JavaScript Language Service

JavaScript Project System 2.0
JavaScript Project System

JavaScript UWP Project System 2.0
JavaScript UWP Project System

JetBrains ReSharper Ultimate 2017.1.2 Build 108.0.20170428.75743
JetBrains ReSharper Ultimate package for Microsoft Visual Studio. For more information about ReSharper Ultimate, visit http://www.jetbrains.com/resharper. Copyright © 2017 JetBrains, Inc.

KofePackagePackage Extension 1.0
KofePackagePackage Visual Studio Extension Detailed Info

Microsoft Azure Tools 2.9
Microsoft Azure Tools for Microsoft Visual Studio 2017 - v2.9.50131.1

Microsoft MI-Based Debugger 1.0
Provides support for connecting Visual Studio to MI compatible debuggers

Microsoft Visual Studio VC Package 1.0
Microsoft Visual Studio VC Package

NuGet Package Manager 4.2.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

SQL Server Data Tools 15.1.61702.140
Microsoft SQL Server Data Tools

TypeScript 2.2.2.0
TypeScript tools for Visual Studio

Visual Studio Tools for Universal Windows Apps 15.0.26430.06
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

@ghost ghost changed the title Build Errors Build Errors - must add a reference to assembly 'Windows, Version=255.255.255.255 May 13, 2017
@crutkas crutkas added the bug The issue relates to the wizard not working or a problem with the generated code. label May 13, 2017
@crutkas
Copy link
Member

crutkas commented May 13, 2017

@barrett2474 so you can go through the wizard but not compile? Can you share the generated project zipped and tell me exactly what options you picked?

@ghost
Copy link
Author

ghost commented May 14, 2017

App5.zip
i can't recall exactly what was selected but nothing seems to compile. i have tried five variations on the selection and all failed to build. i did not try a blank project.

@crutkas
Copy link
Member

crutkas commented May 14, 2017

ok, this is codebehind. I just got the program, did a solution rebuild and it worked. I'm willing to bet you won't even be able to do just a normal file->new with a blank app without repairing VS.

Doing a quick stack overflow lookup on your error, looks like VS had an install issue. :(
http://stackoverflow.com/questions/34673148/universal-windows-app-visual-studio-enterprise-2015

Two quick things that could resolve is going to Apps and Features in the control panel, find "Windows Software Development Kit" and repair both the 14393 and 15086 SDKs.

I'm going to keep this open and hope you can try that and see if that resolves it. I'd first see if the Blank App would even work.

@ghost
Copy link
Author

ghost commented May 14, 2017

thanks - i'll give it a go and report back asap. cheers!

@ghost
Copy link
Author

ghost commented May 14, 2017

i actually have 3 of these kits:
image
i'll repair them all i guess.

@crutkas
Copy link
Member

crutkas commented May 14, 2017

10586 looks very low size wise.

@ghost
Copy link
Author

ghost commented May 15, 2017

still working on this. latest approach is to follow these steps

uninstalling all kits.
removing uw apps feature from vs2017
adding back uw apps feature from vs2017
...in progress...

@ralarcon
Copy link
Contributor

Did you success reinstalling?

@ghost
Copy link
Author

ghost commented May 17, 2017

i did, but still testing...been really busy sorry

@ghost
Copy link
Author

ghost commented May 18, 2017

now i get this...after trying a code behind with live tile

System.Runtime.InteropServices.COMException (0x8002000B): Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX))
at EnvDTE.SolutionClass.AddFromFile(String FileName, Boolean Exclusive)
at Microsoft.Templates.UI.VisualStudio.VsGenShell.AddProjectToSolution(String projectFullPath)
at Microsoft.Templates.Core.PostActions.Catalog.AddProjectToSolutionPostAction.Execute()
at Microsoft.Templates.UI.GenController.ExecutePostActions(GenInfo genInfo, TemplateCreationResult generationResult)
at Microsoft.Templates.UI.GenController.d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Templates.UI.GenController.d__1.MoveNext()

@ghost
Copy link
Author

ghost commented May 18, 2017

image

@ralarcon
Copy link
Contributor

ralarcon commented May 19, 2017

I tried to reproduce exaclty this but I'm not able to do so. I been able to generate a similar exception when the SDK 10586 is not installed. Next version will include more control on this kind of errors so, at least, it should not crash.

Be in sync for Extension updates!

@crutkas crutkas added the Can Close Out Soon Work relating to this issue has been completed. label May 19, 2017
@ghost
Copy link
Author

ghost commented May 20, 2017

yup just cleaned out everything, re-booted, changed VS2017 to not use uwp, re-booted,
got latest template updates, re-booted, installed the latest kit, re-booted.

guess what? still no change - same error as 2 days ago.

you can close this out as i can't waste anymore of my time on the bleeding edge.

@crutkas crutkas closed this as completed May 22, 2017
@microsoft microsoft locked as resolved and limited conversation to collaborators Jun 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug The issue relates to the wizard not working or a problem with the generated code. Can Close Out Soon Work relating to this issue has been completed.
Projects
None yet
Development

No branches or pull requests

2 participants