aspnet / MusicStore

[Archived] MusicStore test application that uses ASP.NET/EF Core. Project moved to https://github.com/aspnet/AspNetCore
1.3k stars 878 forks source link

Error RuntimeIdentifier must be set for .NETFramework executables. #760

Closed hazemusa closed 7 years ago

hazemusa commented 7 years ago

I am trying to use the MusicStore to learn. I have VS2017 RC and when I build, I get:

Error RuntimeIdentifier must be set for .NETFramework executables. Consider RuntimeIdentifier=win7-x86 or RuntimeIdentifier=win7-x64. MusicStore C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.RuntimeIdentifierInference.targets

Here is my .targets file: $(MSBuildAllProjects);$(MSBuildThisFileFullPath)

x86 x64 arm AnyCPU

false $(IntermediateOutputPath)$(RuntimeIdentifier)\ $(OutputPath)$(RuntimeIdentifier)\

pranavkm commented 7 years ago

The issue you were running in to was fixed as part of VS RTM. Go ahead and grab it from https://www.visualstudio.com/downloads/. I'd also recommend using the tutorials on https://docs.microsoft.com/en-us/aspnet/core/. MusicStore is primarily meant for E2E testing the AspNetCore stack so it does things that are atypical of most applications.

hazemusa commented 7 years ago

Thank you!

It is working now based on your suggestion