microsoft / TemplateStudio

Template Studio accelerates the creation of new WinUI 3, WPF, and UWP apps using a wizard-based experience.
Other
2.68k stars 459 forks source link

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

Closed ghost closed 7 years ago

ghost commented 7 years ago

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.

crutkas commented 7 years ago

@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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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

ghost commented 7 years ago

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

crutkas commented 7 years ago

10586 looks very low size wise.

ghost commented 7 years ago

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 commented 7 years ago

Did you success reinstalling?

ghost commented 7 years ago

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

ghost commented 7 years ago

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.d2.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.d1.MoveNext()

ghost commented 7 years ago

image

ralarcon commented 7 years ago

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!

ghost commented 7 years ago

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.