Coder Social home page Coder Social logo

microsoft / partsunlimited Goto Github PK

View Code? Open in Web Editor NEW
664.0 146.0 1.5K 188.58 MB

.Net Core + SQL Azure app for DevOps Scenarios

Home Page: https://microsoft.github.io/PartsUnlimited/

License: MIT License

PowerShell 14.07% C# 58.83% CSS 0.12% JavaScript 2.57% Smalltalk 0.11% Groovy 0.30% HTML 18.66% Batchfile 0.06% Dockerfile 0.18% SCSS 5.09%

partsunlimited's Introduction

Parts Unlimited

Parts Unlimited is an example eCommerce website site based for training purposes on the website described in chapters 31-35 of The Phoenix Project, by Gene Kim, Kevin Behr and George Spafford, © 2013 IT Revolution Press LLC, Portland, OR. Resemblance to “Project Unicorn” in the novel is intentional; resemblance to any real company is purely coincidental.

The master branch of this repo contains the PartsUnlimted application, and deployment and configuration files of that sample app. This sample app and configuration files are then used in the labs appearing on the github pages site http://microsoft.github.io/PartsUnlimited. A shortend url is available in the form of http://aka.ms/pulabs

Any updates or changes to the application or labfiles can be made be merging changes into this master branch, but lab steps and graphics are sourced from the gh-pages branch. Updates to lab page configuration, the lab steps or graphics can be done through the https://github.com/Microsoft/PartsUnlimited/tree/gh-pages branch of this repo.

To get started, please proceed to the page http://microsoft.github.io/PartsUnlimited

PartsUnlimited - Key Features

  • Works with Visual Studio 2017
  • ASP.NET 5 support for Linux and Mono
  • Modern HTML5 responsive layout using bootstrap for mobile, tablet, and PC
  • Includes a Dockerfile and sample publishing profile to publish to a Docker container
  • Supports multiple authentication options including Azure Active Directory, Google, and Facebook
  • Azure Machine Learning product recommendations based on Order History
  • Designed for Azure Websites, including Testing in Production, Staging slots and environment variables for feature flags (to turn off recommendations)
  • Includes Grunt tasks for publishing assets to Azure Storage for CDN ingestion for faster performance
  • Entity Framework code-first using SQL Azure or an in-memory database (Mono)
  • Basic administration pages to add or edit product information
  • Includes Azure RM JSON templates and PowerShell automation scripts to easily build and provision your environment

For the labs based around the PartsUnlimitedMRP Java based application see the page http://microsoft.github.io/PartsUnlimitedMRP. The application and labs on this page use mostly open source software including Linux, Java, Apache, and MongoDB which creates a web front end, an order service, and an integration service.

Microsoft Professional Program (MPP) for DevOps

These labs are used as part of the Microsoft Professional Program (MPP) with DevOps series of online courses. The successful completion of the courses and capstone project, that together make up the MPP for DevOps, results in the granting of the Microsoft MPP for DevOps credential. For more information on the Microsoft Professional Program (MPP) for DevOps program see the pages https://academy.microsoft.com/en-us/professional-program/tracks/devops/ and https://www.edx.org/microsoft-professional-program-devops

Media Elements and Templates. You may copy and use images, clip art, animations, sounds, music, shapes, video clips and templates provided with the sample application and identified for such use in documents and projects that you create using the sample application. These use rights only apply to your use of the sample application and you may not redistribute such media otherwise.

partsunlimited's People

Contributors

bernarden avatar dependabot[bot] avatar dingliu avatar dmi3mis avatar dotnet-bot avatar dtzar avatar eamkel avatar eamonnk avatar emaher avatar gavincampbell avatar jeremymeng avatar jonocairns avatar julienstroheker avatar leimaleison avatar lsprado avatar luizmacedo avatar mathieu-benoit avatar mattgal avatar matthewjdavis avatar microsoft-github-policy-service[bot] avatar mmitche avatar nzthiago avatar rogerbestmsft avatar rroman81 avatar shadtimm avatar steven2000nz avatar twsouthwick avatar wbuchwalter avatar xinshimsft avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

partsunlimited's Issues

Change grunt-sass": "^1.0.0"

If you use node 0.12 it fails building due to invalid version of node-saas, using grunt-sass": "^1.0.0" fixes this problem.

CS0006 Metadata file 'D:\Repos\PartsUnlimited\src\PartsUnlimitedWebsite\bin\Debug\netcoreapp2.0\PartsUnlimitedWebsite.dll' could not be found

I am working through the getting started guide here: https://microsoft.github.io/PartsUnlimited/basic/GettingStarted.html

Everything went great until I went to build the solution, where I got the following errors and warnings:
image

'D:\Repos\PartsUnlimited\src\PartsUnlimitedWebsite\bin\Debug\netcoreapp2.0\PartsUnlimitedWebsite.dll' could not be found PartsUnlimited.UnitTests D:\Repos\PartsUnlimited\test\PartsUnlimited.UnitTests\CSC

Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (59) PartsUnlimitedWebsite D:\Repos\PartsUnlimited\src\PartsUnlimitedWebsite\EXEC

Task "sass" not found.� Use --force to continue. PartsUnlimitedWebsite D:\Repos\PartsUnlimited\src\PartsUnlimitedWebsite\EXEC

MSB3073 The command "grunt" exited with code 3. PartsUnlimitedWebsite D:\Repos\PartsUnlimited\src\PartsUnlimitedWebsite\PartsUnlimitedWebsite.csproj

I have followed the steps in the article to clean out the files and re-download them, and that hasn't changed anything. Running Visual Studio as Administrator also didn't make any difference.

Name Value


PSVersion 5.1.16299.98
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.16299.98
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Visual Studio:
Microsoft Visual Studio Enterprise 2017
Version 15.5.6
VisualStudio.15.Release/15.5.6+27130.2027
Microsoft .NET Framework
Version 4.7.02556

Installed Version: Enterprise

Visual Basic 2017 00369-60000-00001-AA205
Microsoft Visual Basic 2017

Visual C# 2017 00369-60000-00001-AA205
Microsoft Visual C# 2017

Visual F# 4.1 00369-60000-00001-AA205
Microsoft Visual F# 4.1

Application Insights Tools for Visual Studio Package 8.10.01106.1
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2017 15.0.31127.0
ASP.NET and Web Tools 2017

ASP.NET Core Razor Language Services 1.0
Provides languages services for ASP.NET Core Razor.

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

Azure App Service Tools v3.0.0 15.0.31106.0
Azure App Service Tools v3.0.0

Azure Data Lake Node 1.0
This package contains the Data Lake integration nodes for Server Explorer.

Azure Data Lake Tools for Visual Studio 2.3.2000.1
Microsoft Azure Data Lake Tools for Visual Studio

Azure Data Lake Tools for Visual Studio 2.3.2000.1
Microsoft Azure Data Lake Tools for Visual Studio

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

Cookiecutter 3.0.17320.1
Provides tools for finding, instantiating and customizing templates in cookiecutter format.

Fabric.DiagnosticEvents 1.0
Fabric Diagnostic Events

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

Microsoft Azure HDInsight Azure Node 2.3.2000.1
HDInsight Node under Azure Node

Microsoft Azure Hive Query Language Service 2.3.2000.1
Language service for Hive query

Microsoft Azure Service Fabric Tools for Visual Studio 2.0
Microsoft Azure Service Fabric Tools for Visual Studio

Microsoft Azure Stream Analytics Language Service 2.3.2000.1
Language service for Azure Stream Analytics

Microsoft Azure Stream Analytics Node 1.0
Azure Stream Analytics Node under Azure Node

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

Microsoft Continuous Delivery Tools for Visual Studio 0.3
Simplifying the configuration of continuous build integration and continuous build delivery from within the Visual Studio IDE.

Microsoft JVM Debugger 1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

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

Microsoft Visual Studio Tools for Containers 1.1
Develop, run, validate your ASP.NET Core applications in the target environment. F5 your application directly into a container with debugging, or CTRL + F5 to edit & refresh your app without having to rebuild the container.

Microsoft Visual Studio VC Package 1.0
Microsoft Visual Studio VC Package

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

Python 3.0.17320.1
Provides IntelliSense, projects, templates, debugging, interactive windows, and other support for Python developers.

Python - Django support 3.0.17320.1
Provides templates and integration for the Django web framework.

Python - IronPython support 3.0.17320.1
Provides templates and integration for IronPython-based projects.

Python - Profiling support 3.0.17320.1
Profiling support for Python projects.

R Tools for Visual Studio 1.3.31108.1213
Provides project system, R Interactive window, plotting, and more for the R programming language.

Redgate ReadyRoll 1.16.18018.7798
Extend DevOps processes to your SQL Server databases and safely automate database deployments.

Visit https://www.red-gate.com/readyroll for more information.

Copyright (C) 2011 Red Gate Software Ltd. All rights reserved.

This software contains components from Component Owl.
SQL Server is a registered trademark of Microsoft Corporation.
Visual Studio is a registered trademark of Microsoft Corporation.

ReadyRoll contains code from the following open source software:

NuGet https://www.nuget.org/
SQL LocalDB Wrapper https://github.com/martincostello/sqllocaldb
Autofac https://autofac.org/
Json.NET https://json.net/
MahApps.Metro http://mahapps.com/
SemVer https://github.com/maxhauser/semver
Log4Net http://logging.apache.org/log4net/
Extended WPF Toolkit https://wpftoolkit.codeplex.com/
Code InfoBox VSX http://www.codeproject.com/Articles/55196/Code-InfoBox-Visual-Studio-Extension-VSX
OctoPack https://github.com/OctopusDeploy/OctoPack
SQLite https://sqlite.org/

This product contains icons from http://www.visualpharm.com distributed under a free backlink license.

For license details or other notices relating to the above software, please see NOTICE.TXT and EULA.rtf in the ReadyRoll application folder.

Redgate SQL Prompt 9.0.7.3692
Write, format, and refactor SQL effortlessly

Snapshot Debugging Extension 1.0
Snapshot Debugging Visual Studio Extension Detailed Info

SQL Server Data Tools 15.1.61710.120
Microsoft SQL Server Data Tools

ToolWindowHostedEditor 1.0
Hosting json editor into a tool window

TypeScript Tools 15.5.11025.1
TypeScript Tools for Microsoft Visual Studio

Visual Studio Code Debug Adapter Host Package 1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio

Visual Studio Tools for Universal Windows Apps 15.0.27130.2020
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.

WebJobs Tools v1.0.0 15.0.40108.0
WebJobs Tools v1.0.0

MSBuild Definition Paramters invalid

When using the msbuild parameters in the article, the resulting build errors out with the following:

2016-02-18T18:03:59.6389793Z MSBUILD : error MSB1008: Only one project can be specified.
2016-02-18T18:03:59.6389793Z Switch: p:DeployOnBuild=true
2016-02-18T18:03:59.6399788Z For switch syntax, type "MSBuild /help"
2016-02-18T18:03:59.8519793Z ##[error]Process 'msbuild.exe' exited with code '1'.

Build parameters:
/p:DeployOnBuild=true
/p:WebPublishMethod=Package
/p:PackageAsSingleFile=true
/p:SkipInvalidConfirations=true
/p:PackageLocation="C:\Agent\HOL"

readme docs/HOL-Continuous_Deployment seems not correct

Step 3 point 2 button “AzureRM Web App Deployment” not exists. We used “Azure App Server Deploy” and selected version 1.* (default is 3.*).
Looks like the example screen dumps are from a previous version of Visual Studio Team Services?

VSTS CI Task "dotnet restore, build, test and publish" fails with errors

Hi,
I am getting the below error message with the VSTS CI Task "dotnet restore, build, test and publish". I have also set the BuildConfiguration variable to release. Is there something else I am missing?

Error Message:
The test source file "D:\a\1\s\test\PartsUnlimited.UnitTests\bin\release\netcoreapp2.0\PartsUnlimited.UnitTests.dll" provided was not found.

Set-Content : Could not find a part of the path 'D:\a\1\a\Publish\manifest.xml'.
At D:\a\1\s\build.ps1:49 char:1

  • Set-Content -Path $manifestFile -Value $sourceManifest
  •   + CategoryInfo          : ObjectNotFound: (D:\a\1\a\Publish\manifest.xml:String) [Set-Content], DirectoryNotFoundE 
     xception
      + FullyQualifiedErrorId : GetContentWriterDirectoryNotFoundError,Microsoft.PowerShell.Commands.SetContentCommand
    
    

Process completed with exit code 1 and had 2 error(s) written to the error stream.

DNX design time process

Hi, I mnaged to download, compile and we site works fine. However, when I come back, fire VS, and reopen the solution in VS, I get the following

The following error occurred attempting to run the DNX design time process(dnx-clr-win-x86.1.1.0-rc1-update1)
No connection could be made because the target machine actively refused it [::ffff:127.0.0.1]:56426
The DNX design time process provides intellisense, build..........check that the DNX version is properly isnstalled

Both, start debugging and Start with debugging items in the debugging menu are disabled.
I close the solution, reopen it, I don²t get this message and all buttons enabled and can run the website.
What is the issue here? Thanks in advance

project.json is now deprecated and missing from repo

Documentation for Service Fabric fault injection currently references project.json which no longer exists in the repo, and is no longer used by dotnet core.

Users can use this instead from the src\PartsUnlimitedWebsite directory: dotnet publish --framework netcoreapp1.1 --runtime win10-x64 -c Release

Can this demo web site be setup on local server

Hi, I downloaded this application followed all instructions, the solution restored everything and I was able to build in my local Visual studio. I hit "Start debug", eveyrhting compile and I get a Dos windos indicating that application is listening at http://localhost:5001 but nothing opens in my browser. I don't want to touch anything for the time being in my Azure account, so the question is this logic, can I run the application locally without going to azure?
Thanks

Azure requires LocalDB

While following the steps in the getting started doc, the web platform installed complaints that Azure requires LocalDB.

It should be added that when installing Visual Studio 2015 the following steps should be followed

Go to Programs and Features
2. Select Visual Studio
3. Select Change -> Modify
4. Check Microsoft SQL Server Data Tool and Click Update

Hope this helps!

Faild to build solution using hosted agent in VSTS online.

Error in the build stream:
The specified framework 'Microsoft.NETCore.App', version '1.0.0-rc2-3002702' was not found.

  • Check application dependencies and target a framework version installed at:
    C:\Program Files\dotnet\shared\Microsoft.NETCore.App
  • The following versions are installed:
    1.0.0
  • Alternatively, install the framework version '1.0.0-rc2-3002702'.

dotnet --version on hosted server in VSTS online account
1.0.0-preview2-003121

Release of Resource Group from HOL - Continuous Deployment fails

In trying to create a release, I'm getting an error from the Resource Group deployment. In Task 4, Step 2, I have the test of the ARM template deployment failing. The resource group is created, but then I get this log:

2017-02-25T00:32:45.8634566Z ##[section]Starting: Azure Deployment:Create Or Update Resource Group action on dkPartsUnlimitedRG

2017-02-25T00:32:45.9084575Z ==============================================================================

2017-02-25T00:32:45.9084575Z Task : Azure Resource Group Deployment

2017-02-25T00:32:45.9084575Z Description : Deploy, start, stop, delete Azure Resource Groups

2017-02-25T00:32:45.9084575Z Version : 2.0.1

2017-02-25T00:32:45.9084575Z Author : Microsoft Corporation

2017-02-25T00:32:45.9084575Z Help : More Information

2017-02-25T00:32:45.9094571Z ==============================================================================

2017-02-25T00:32:47.2361989Z dc13b00c-680d-4bd8-81da-44ee6b4f47aa exists true

2017-02-25T00:32:47.2361989Z Checking if the following resource group exists: dkPartsUnlimitedRG.

2017-02-25T00:32:47.2371988Z Resource group exists: true.

2017-02-25T00:32:47.2371988Z Creating deployment parameters.

2017-02-25T00:32:47.2531989Z ##[error]Ensure the Parameters file is valid. Task failed while parsing with following error: Unexpected token 

2017-02-25T00:32:47.2611968Z ##[section]Finishing: Azure Deployment:Create Or Update Resource Group action on dkPartsUnlimitedRG

It seems as though something has changed. The VSTS task looks slightly different than the documentation, and I don't see the Output -> Resource Group parameter in the Azure Resource Group Deployment task.

Tagging @julienstroheker and @mathieu-benoit

Product details always displaying in USD

When viewing the site from a none US local agent the store homepage and checkout use local currency whereas the product details page is hard coded to USD but at the same value.

Getting "Path too long" when running the HOL

I am following the lab. When I get to "4: Create a Release Definition / 2. Test the ARM Template Deployment" I start a release and it gets to the "Azure Deployment:Create Or Update Resource Group action on Parts Unlimited" step and it fails. The error is "##[error]The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.". I have attached the log files (as text files).

Dave Burnison
Sr. ALM Consultant
Microsoft - Premier Developer

1_Release_log.txt
2_Download artifacts_log.txt
1_Initialize_log.txt

Working without LocalDB

I don't have SQLExpress on my VS laptop. What is needed to be done to make the site works with a remote SQL server?
Thanks

Documentation Issue on the Manual Deployment

I go the next phase from the HOL and try the Manual Deployment.
I run always in an build error at the src/Website at the npm install task --> 9009

I could fixed the error after I find out, that the npm install command only works with admin rights in the shell.
After I start VS2017 as an admin I was able to run successfully the build solution command and I could publish it to azure.
Please extent the docu with the run as admin VS2017
THX

Feedback for HOL-Continuous_Integration

When following the HOL-Continuous_Integration, I noticed a couple of minor issues:

  • In the step 1 of Task 1: This sentence " You can paste in the URL if you copied it in Step 1" is confusing. There is no copying action in step 1. This sentence is probably from the previous version of the labs and not needed any more.

  • In Task 3: The steps are not numbered correctly. There are two "step 2" and two "step 4".

Anyway, these are just very minor issues. Hope it helps!

Couldn't find 'project.json' in '/src/PartsUnlimitedWebsite' Process completed with exit code 1.

Hi there

I have specified the right folder for the build but the build constantly fails. Works on my own project. Also verified project.json exists! Please note that I do not want to use the powershell script, I want the tasks laid out. I have tried the solution with the PS Script as well, with no luck!

Please help, trying to get this issue resolved.

Command Line Util
screenshot 2017-06-01 09 54 14

Project.json in src/PartsUnlimited
screenshot 2017-06-01 09 56 13

Failed Build result
screenshot 2017-06-01 09 58 01

Deployment Failure due to Microsoft.Insights/Components

I'm having issues when I try to deploy the App with "Azure Resource Group Deployment" Task as indicated in the labs.

I'm getting the following error message:

Resource Microsoft.Insights/components 'pudncorehcote-StagingInsights' failed with message '{
"error": {
"code": "MissingRegistrationForLocation",
"message": "The subscription is not registered for the resource type 'components' in the location 'Central US'. Please re-register for this provider in order to have access to this location."
}

Its the same error for the dev and production environments. Any toughs on what is causing the error?

No service for type 'Microsoft.Framework.Runtime.ILibraryManager' has been registered.

I followed the instructions and I got this error when running the app.
Stack Trace:
[InvalidOperationException: No service for type 'Microsoft.Framework.Runtime.ILibraryManager' has been registered.]
System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException) +303

[HttpException (0x80004005): No service for type 'Microsoft.Framework.Runtime.ILibraryManager' has been registered.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9920760
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +261

This is the project.json file

"version": "1.0.0-*",
"description": "",
"authors": [ "" ],
"tags": [ "" ],
"projectUrl": "",
"licenseUrl": "",
"dependencies": {
"Microsoft.AspNet.Mvc": "6.0.0-beta4",
"Microsoft.AspNet.Identity.EntityFramework": "3.0.0-beta4",
"EntityFramework.SqlServer": "7.0.0-beta4",
"EntityFramework.Commands": "7.0.0-beta4",
"Microsoft.AspNet.StaticFiles": "1.0.0-beta4",
"Microsoft.Framework.ConfigurationModel.Json": "1.0.0-beta4",
"Microsoft.Framework.OptionsModel": "1.0.0-beta4"
},
"commands": {
"ef": "EntityFramework.Commands"
},
"frameworks": {
"dnx451": {
},
"dnxcore50": {
}
}
}

This is the output of dvnm list.
dnvm list
Active Version Runtime Architecture


1.0.0-beta5 clr x64

  • 1.0.0-beta5 clr x86 default

1.0.0-beta5 coreclr x64

0.0-beta5 coreclr x86

I don't have experience with .NET, and I want to run this app for experimentation purposes.

Thank you.

Error CS0006 Metadata file could not be found

Severity Code Description Project File Line Suppression State
Error CS0006 Metadata file 'C:\Users\user1\Source\Repos\PartsUnlimited\src\PartsUnlimitedWebsite\bin\Debug\netcoreapp2.0\PartsUnlimitedWebsite.dll' could not be found PartsUnlimited.UnitTests C:\Users\user1\Source\Repos\PartsUnlimited\test\PartsUnlimited.UnitTests\CSC 1 Active

Severity Code Description Project File Line Suppression State
Error Missing binding C:\Users\user1\Source\Repos\PartsUnlimited\src\PartsUnlimitedWebsite\node_modules\grunt-sass\node_modules\node-sass\vendor\win32-x64-48\binding.node PartsUnlimitedWebsite C:\Users\user1\Source\Repos\PartsUnlimited\src\PartsUnlimitedWebsite\EXEC 1

Severity Code Description Project File Line Suppression State
Warning Task "sass" not found.� Use --force to continue. PartsUnlimitedWebsite C:\Users\user1\Source\Repos\PartsUnlimited\src\PartsUnlimitedWebsite\EXEC 1

Severity Code Description Project File Line Suppression State
Error MSB3073 The command "grunt" exited with code 3. PartsUnlimitedWebsite C:\Users\user1\Source\Repos\PartsUnlimited\src\PartsUnlimitedWebsite\PartsUnlimitedWebsite.csproj 41

No Mobile project included

Hi,

Please share the mobile solution too! There's no mobile project included in this repo.

Thanks,
Srivatsa

Continuous Integration Build fails with node-gyp lib errors in Find-VS2017.cs

I have followed continuous integration steps given in the documentation and used import repository to pull the code to VSTS branch. I have setup the build configuration variable and added the build steps as given in the documentation. Upon Build, build fails with errors in node-gyp\lib\Find-VS2017.cs
Build issues
D:\a\1\s\src\PartsUnlimitedWebsite\node_modules\node-gyp\lib\Find-VS2017.cs(155,28): warning CS0618: 'UnmanagedType.VariantBool' is obsolete: 'Marshalling as VariantBool may be unavailable in future releases.'
D:\a\1\s\src\PartsUnlimitedWebsite\node_modules\node-gyp\lib\Find-VS2017.cs(165,28): warning CS0618: 'UnmanagedType.SafeArray' is obsolete: 'Marshalling as SafeArray may be unavailable in future releases.'
D:\a\1\s\src\PartsUnlimitedWebsite\node_modules\node-gyp\lib\Find-VS2017.cs(165,72): warning CS0618: 'VarEnum' is obsolete: 'Marshalling VARIANTs may be unavailable in future releases.'
D:\a\1\s\src\PartsUnlimitedWebsite\node_modules\node-gyp\lib\Find-VS2017.cs(83,28): warning CS0618: 'UnmanagedType.Struct' is obsolete: 'Applying UnmanagedType.Struct is unnecessary when marshalling a struct. Support for UnmanagedType.Struct when marshalling a reference type may be unavailable in future releases.'
D:\a\1\s\src\PartsUnlimitedWebsite\node_modules\node-gyp\lib\Find-VS2017.cs(107,28): warning CS0618: 'UnmanagedType.SafeArray' is obsolete: 'Marshalling as SafeArray may be unavailable in future releases.'
D:\a\1\s\src\PartsUnlimitedWebsite\node_modules\node-gyp\lib\Find-VS2017.cs(107,72): warning CS0618: 'VarEnum' is obsolete: 'Marshalling VARIANTs may be unavailable in future releases.'
D:\a\1\s\src\PartsUnlimitedWebsite\node_modules\node-gyp\lib\Find-VS2017.cs(115,28): warning CS0618: 'UnmanagedType.VariantBool' is obsolete: 'Marshalling as VariantBool may be unavailable in future releases.'
D:\a\1\s\src\PartsUnlimitedWebsite\node_modules\node-gyp\lib\Find-VS2017.cs(118,28): warning CS0618: 'UnmanagedType.VariantBool' is obsolete: 'Marshalling as VariantBool may be unavailable in future releases.'
D:\a\1\s\src\PartsUnlimitedWebsite\node_modules\node-gyp\lib\Find-VS2017.cs(121,28): warning CS0618: 'UnmanagedType.SafeArray' is obsolete: 'Marshalling as SafeArray may be unavailable in future releases.'
D:\a\1\s\src\PartsUnlimitedWebsite\node_modules\node-gyp\lib\Find-VS2017.cs(121,72): warning CS0618: 'VarEnum' is obsolete: 'Marshalling VARIANTs may be unavailable in future releases.'
D:\a\1\s\src\PartsUnlimitedWebsite\node_modules\node-gyp\lib\Find-VS2017.cs(83,28): warning CS0618: 'UnmanagedType.Struct' is obsolete: 'Applying UnmanagedType.Struct is unnecessary when marshalling a struct. Support for UnmanagedType.Struct when marshalling a reference type may be unavailable in future releases.'
D:\a\1\s\src\PartsUnlimitedWebsite\node_modules\node-gyp\lib\Find-VS2017.cs(107,28): warning CS0618: 'UnmanagedType.SafeArray' is obsolete: 'Marshalling as SafeArray may be unavailable in future releases.'
D:\a\1\s\src\PartsUnlimitedWebsite\node_modules\node-gyp\lib\Find-VS2017.cs(107,72): warning CS0618: 'VarEnum' is obsolete: 'Marshalling VARIANTs may be unavailable in future releases.'
D:\a\1\s\src\PartsUnlimitedWebsite\node_modules\node-gyp\lib\Find-VS2017.cs(115,28): warning CS0618: 'UnmanagedType.VariantBool' is obsolete: 'Marshalling as VariantBool may be unavailable in future releases.'
D:\a\1\s\src\PartsUnlimitedWebsite\node_modules\node-gyp\lib\Find-VS2017.cs(118,28): warning CS0618: 'UnmanagedType.VariantBool' is obsolete: 'Marshalling as VariantBool may be unavailable in future releases.'
D:\a\1\s\src\PartsUnlimitedWebsite\node_modules\node-gyp\lib\Find-VS2017.cs(121,28): warning CS0618: 'UnmanagedType.SafeArray' is obsolete: 'Marshalling as SafeArray may be unavailable in future releases.'
D:\a\1\s\src\PartsUnlimitedWebsite\node_modules\node-gyp\lib\Find-VS2017.cs(121,72): warning CS0618: 'VarEnum' is obsolete: 'Marshalling VARIANTs may be unavailable in future releases.'
D:\a\1\s\src\PartsUnlimitedWebsite\node_modules\node-gyp\lib\Find-VS2017.cs(155,28): warning CS0618: 'UnmanagedType.VariantBool' is obsolete: 'Marshalling as VariantBool may be unavailable in future releases.'
D:\a\1\s\src\PartsUnlimitedWebsite\node_modules\node-gyp\lib\Find-VS2017.cs(165,28): warning CS0618: 'UnmanagedType.SafeArray' is obsolete: 'Marshalling as SafeArray may be unavailable in future releases.'
logs_49.zip
buildtasks.zip

"Continuous Delivery with Windows Containers and VSTS" Lab is too broken to fix with a pull request

This lab has a few problems, mostly caused by specifying the container name iiscntr1 in task 5, step 6. This means that task 5, step 16 ("You should run this a couple of times") will fail on the second and subsequent runs, as the container is started on the build agent itself and not torn down between runs - the tasks to do this are disabled in task 5, steps 7 and 8.

Task 6 will also fail, as the container name is still the same and there are no prerequisite steps to tear down the environment.

Of course, allowing the name to be assigned automatically will cause task 7 to fail due to task 5, steps 7 and 8 also failing.

Don't think I can fix this in a pull request without changing the intent of the lab exercise.

"Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (57)"

Title

Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (57)

Functional impact

Results in solution failing to build.

Minimal repro steps

Following directions from here under the "Set up your machine" and "Get the source code".

  1. Installed Visual Studio 2017 (enterprise).
  2. Install Azure Power Shell (irrelevant for this issue)
  3. Install NodeJS (8.9.4 LTS rather than 6.11.3 LTS that the article mentioned)
  4. Install bower and grunt.
  5. Clone source code from PartsUnlimited
  6. Build solution

Expected result

Successful build.

Actual result

Build failed with error message - "Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (57)"

Further technical details

Running a Windows 10 VM in Azure.
Located this issue which indicated to update the gulp-sass version to 3.1.0. When I did a search of the solution, "gulp-sass" was only in the readme. But I did notice that npm install node-sass did result in a couple warnings. Namely that it could not find c:\repos\PartsUnlimited\package.json.

c:\repos\PartsUnlimited>npm install
npm WARN saveError ENOENT: no such file or directory, open 'c:\repos\PartsUnlimited\package.json'
npm WARN enoent ENOENT: no such file or directory, open 'c:\repos\PartsUnlimited\package.json'
npm WARN PartsUnlimited No description
npm WARN PartsUnlimited No repository field.
npm WARN PartsUnlimited No README data
npm WARN PartsUnlimited No license field.

up to date in 1.344s

c:\repos\PartsUnlimited>npm --version
5.6.0

c:\repos\PartsUnlimited>node --version
v8.9.4

I did also go through the git clean -fdx step as well to no avail.

Facing issue with Azure Resource Deployment Task -Continuous Deployment

I am receiving the below error when I trying to deploy environment using AZURE Resource Deployment Task. I think _artifactsLocation variable is not getting populated as per my knowledge VSTS should populate this variable automatically. Anybody, please help me with this issue.

2018-02-02T08:37:30.5807763Z There were errors in your deployment. Error code: InvalidTemplate.
2018-02-02T08:37:30.6006429Z ##[error]Deployment template validation failed: 'The value for the template parameter '_artifactsLocation' at line '1' and column '1371' is not provided. Please see https://aka.ms/arm-deploy/#parameter-file for usage details.'.
2018-02-02T08:37:30.6007665Z ##[error]Task failed while creating or updating the template deployment.

Build failed exit code 0 with 3 errors CS0618 with extented buildOptions

Dear all,

I try to create a build (step by step from doku HOL LAB double check)
I use the hosted Agent on VSTS

I run into 3 errors related to CS0618

2017-09-17T07:54:45.1039400Z ##[error]D:\a\1\s\src\PartsUnlimitedWebsite\node_modules\node-gyp\lib\Find-VS2017.cs(83,28): warning CS0618: 'UnmanagedType.Struct' is obsolete: 'Applying UnmanagedType.Struct is unnecessary when marshalling a struct. Support for UnmanagedType.Struct when marshalling a reference type may be unavailable in future releases.'

2017-09-17T07:54:45.1066643Z ##[error]D:\a\1\s\src\PartsUnlimitedWebsite\node_modules\node-gyp\lib\Find-VS2017.cs(107,28): warning CS0618: 'UnmanagedType.SafeArray' is obsolete: 'Marshalling as SafeArray may be unavailable in future releases.'

2017-09-17T07:55:02.4532020Z ##[error]D:\a\1\s\src\PartsUnlimitedWebsite\node_modules\node-gyp\lib\Find-VS2017.cs(83,28): warning CS0618: 'UnmanagedType.Struct' is obsolete: 'Applying UnmanagedType.Struct is unnecessary when marshalling a struct. Support for UnmanagedType.Struct when marshalling a reference type may be unavailable in future releases.'

this is also in place:

"buildOptions": {
90 "emitEntryPoint": true,
91 "preserveCompilationContext": true,
92 "noWarn": ["CS0618"],
92 "copyToOutput": "config.json"
93 },
logs_43.zip

Can you help me ?

Best Regards

Visual Studio 2017 can't Install Required Bower Packages (DevOps200.1x Lab1- PartsUnlimited Setup with Visual Studio)

Following the lab steps in DevOps200.1x Lab1- PartsUnlimited Setup with Visual Studio.

Functional impact

In task 3, after opening the PartsUnlimited.sln file in Visual Studio 2017, the IDE can't install the required bower packages. The lab can't proceed to the next step.

Minimal repro steps

  1. Create a Visual Studio Community 2017 on Windows Server 2016 (x64) VM in Azure
  2. In the VS2017 VM, follow the lab steps provided in instructions page, to task 3 step 3

Expected result

There is no errors listed under the six projects of the PartsUnlimited Solution, particularly under dependencies

Actual result

Under the dependencies of PartsUnlimitedWebsite project, all the required bower packages are not installed.

bower-package-warnings

Further technical details

When trying to restore bower packages, there are error messages in output pannel indicating requests to https://bower.herokuapp.com/packages/ failed with code 502.

bower-package-install-requests-fail-502

Which npm application to use for Visual Studio 2015 Community (Version 14.0.25431.01 Update 3) edition

output.bower-npm.log.txt

Hi,

I'm trying to build the application as given in: https://microsoft.github.io/PartsUnlimited/basic/GettingStarted.html

However, I'm running into these error messages:
1>------ Build started: Project: PartsUnlimited.Models, Configuration: Debug Any CPU ------
2>------ Build started: Project: PartsUnlimitedEnv, Configuration: Debug Any CPU ------
1> C:\Program Files\dotnet\dotnet.exe build "C:\tools\cygwin\home\SAD\projects\PartsUnlimited\src\PartsUnlimited.Models" --configuration Debug --no-dependencies
1> Project PartsUnlimited.Models (.NETStandard,Version=v1.5) will be compiled because expected outputs are missing
1> Compiling PartsUnlimited.Models for .NETStandard,Version=v1.5
1> Compilation succeeded.
1> 0 Warning(s)
1> 0 Error(s)
1> Time elapsed 00:00:02.2631379
1>
3>------ Build started: Project: PartsUnlimitedWebsite, Configuration: Debug Any CPU ------
3> C:\Program Files\dotnet\dotnet.exe build "C:\tools\cygwin\home\SAD\projects\PartsUnlimited\src\PartsUnlimitedWebsite" --configuration Debug --no-dependencies
3> Project PartsUnlimitedWebsite (.NETCoreApp,Version=v1.0) will be compiled because project is not safe for incremental compilation. Use --build-profile flag for more information.
3> Compiling PartsUnlimitedWebsite for .NETCoreApp,Version=v1.0
3>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Common.Targets(262,5): error : No executable found matching command "npm"
4>------ Build started: Project: PartsUnlimited.UnitTests, Configuration: Debug Any CPU ------
4> C:\Program Files\dotnet\dotnet.exe build "C:\tools\cygwin\home\SAD\projects\PartsUnlimited\test\PartsUnlimited.UnitTests" --configuration Debug --no-dependencies
4> Project PartsUnlimited.UnitTests (.NETCoreApp,Version=v1.0) will be compiled because expected inputs are missing
4> Compiling PartsUnlimited.UnitTests for .NETCoreApp,Version=v1.0
4> C:\Program Files\dotnet\dotnet.exe compile-csc @C:\tools\cygwin\home\SAD\projects\PartsUnlimited\test\PartsUnlimited.UnitTests\obj\Debug\netcoreapp1.0\dotnet-compile.rsp returned Exit Code 1
4>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Common.Targets(262,5): error : C:\tools\cygwin\home\SAD\projects\PartsUnlimited\test\PartsUnlimited.UnitTests\error CS0006: Metadata file 'C:\tools\cygwin\home\SAD\projects\PartsUnlimited\src\PartsUnlimitedWebsite\bin\Debug\netcoreapp1.0\PartsUnlimitedWebsite.dll' could not be found
4> Compilation failed.
4> 0 Warning(s)
4> 1 Error(s)
4> Time elapsed 00:00:00.4284530
========== Build: 2 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========

Which npm application should I use - from nuget (and which nuget package) or downloaded from upstream?

Updated: I've now attach an Output from bower/npm output panel.

/Henrik

Port master to beta5

Current the master branch works against beta4. However, with the release of Visual Studio 2015, the default version of .net for ASP.NET 5 products is the beta5 version. Master should be updated to reflect that.

Dependency xunit.runner.aspnet >= 2.1.0-beta1-* could not be resolved

Hi,

I try to build and test this project. I use a brand new machine with Windows 10, Visual Studio 2015 Enterprise(RTM) with "dnvm install 1.0.0-beta4" and Microsoft Azure SDK for .NET (VS 2015) - 2.7.

We no longer download Visual Studio RC unless we don't have MSDN. It might cause problem when we try to do some hands on.

I can build and deploy Azure. However, I still have this error. I know xunit.runner.aspnet is outdated and truned into dnx. However, how to install this library? I try this procedure but it didn't work.

https://www-1.nuget.org/packages/xunit.runner.aspnet/

Any ideas?

Unable to create directory error

In this tutorial I seem to be having a problem with the MSBuild Arguments. Without specifying /p:PackageLocation all is well but I have no idea where the build was copied to.

My arguments are:
/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="K:\agent\MyApp"

Here are the error messages:
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.Web.Publishing.targets (2954, 5)
Unable to create directory "K:\agent\MyApp". Could not find a part of the path 'K:\agent\MyApp'.

System.Exception: Unexpected exit code received from msbuild.exe: 1
at Microsoft.TeamFoundation.DistributedTask.Task.Internal.PowerShell.InvokeMSBuildCmdlet.ProcessRecord()
at System.Management.Automation.CommandProcessor.ProcessRecord()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.