{"action":"closed","issue":{"url":"https://api.github.com/repos/Starcounter/Starcounter/issues/2896","repository_url":"https://api.github.com/repos/Starcounter/Starcounter","labels_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/2896/labels{/name}","comments_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/2896/comments","events_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/2896/events","html_url":"https://github.com/Starcounter/Starcounter/issues/2896","id":107037935,"number":2896,"title":"Building apps without Visual Studio produces a wall of warnings","user":{"login":"warpech","id":566463,"avatar_url":"https://avatars.githubusercontent.com/u/566463?v=3","gravatar_id":"","url":"https://api.github.com/users/warpech","html_url":"https://github.com/warpech","followers_url":"https://api.github.com/users/warpech/followers","following_url":"https://api.github.com/users/warpech/following{/other_user}","gists_url":"https://api.github.com/users/warpech/gists{/gist_id}","starred_url":"https://api.github.com/users/warpech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/warpech/subscriptions","organizations_url":"https://api.github.com/users/warpech/orgs","repos_url":"https://api.github.com/users/warpech/repos","events_url":"https://api.github.com/users/warpech/events{/privacy}","received_events_url":"https://api.github.com/users/warpech/received_events","type":"User","site_admin":false},"labels":[{"id":261708261,"url":"https://api.github.com/repos/Starcounter/Starcounter/labels/CodeNight","name":"CodeNight","color":"5319e7","default":false}],"state":"closed","locked":false,"assignee":{"login":"chrhol","id":1658979,"avatar_url":"https://avatars.githubusercontent.com/u/1658979?v=3","gravatar_id":"","url":"https://api.github.com/users/chrhol","html_url":"https://github.com/chrhol","followers_url":"https://api.github.com/users/chrhol/followers","following_url":"https://api.github.com/users/chrhol/following{/other_user}","gists_url":"https://api.github.com/users/chrhol/gists{/gist_id}","starred_url":"https://api.github.com/users/chrhol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrhol/subscriptions","organizations_url":"https://api.github.com/users/chrhol/orgs","repos_url":"https://api.github.com/users/chrhol/repos","events_url":"https://api.github.com/users/chrhol/events{/privacy}","received_events_url":"https://api.github.com/users/chrhol/received_events","type":"User","site_admin":false},"assignees":[{"login":"chrhol","id":1658979,"avatar_url":"https://avatars.githubusercontent.com/u/1658979?v=3","gravatar_id":"","url":"https://api.github.com/users/chrhol","html_url":"https://github.com/chrhol","followers_url":"https://api.github.com/users/chrhol/followers","following_url":"https://api.github.com/users/chrhol/following{/other_user}","gists_url":"https://api.github.com/users/chrhol/gists{/gist_id}","starred_url":"https://api.github.com/users/chrhol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrhol/subscriptions","organizations_url":"https://api.github.com/users/chrhol/orgs","repos_url":"https://api.github.com/users/chrhol/repos","events_url":"https://api.github.com/users/chrhol/events{/privacy}","received_events_url":"https://api.github.com/users/chrhol/received_events","type":"User","site_admin":false}],"milestone":null,"comments":23,"created_at":"2015-09-17T17:54:31Z","updated_at":"2016-12-16T12:18:59Z","closed_at":"2016-12-16T12:18:59Z","body":"We are giving a 1.5 hour workshop in October 2015 (CodeNight). It would be great get everyone in the room up and running Starcounter, without having to bother with installation of Visual Studio. This is especially important to appeal to the \"hacker\" community.\n\nA goal is to compile Starcounter InvoiceDemo (http://starcounter.io/tutorials/) on a fresh Windows 10 installation (a VM of such may be obtained from here https://dev.modern.ie/tools/vms/)\n\nAfter trying to do so, I came upon such obstacles:\n1. `msbuild` comes preinstalled in Windows 10, but is not available in PATH. This can be fixed by calling `set PATH=%PATH%;C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319` (warning: such change in cmd is not persistent)\n2. Trying to run `msbuild InvoiceDemo1.csproj` (downloaded as ZIP from https://github.com/Starcounter/InvoiceDemo/archive/master.zip) results in a wall of warnings:\n\n```\nc:\\Users\\IEUser\\Downloads\\InvoiceDemo-master\\src\\InvoiceDemo1>msbuild InvoiceDemo.csproj\nMicrosoft (R) Build Engine version 4.6.79.0\n[Microsoft .NET Framework, version 4.0.30319.42000]\nCopyright (C) Microsoft Corporation. All rights reserved.\n\nBuild started 9/17/2015 7:50:22 PM.\nProject \"c:\\Users\\IEUser\\Downloads\\InvoiceDemo-master\\src\\InvoiceDemo1\\InvoiceDemo.csproj\" on node 1 (default targets).\nC:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\Microsoft.Common.targets(983,5): warning MSB3644: The reference assemblie\ns for framework \".NETFramework,Version=v4.5\" were not found. To resolve this, install the SDK or Targeting Pack for thi\ns framework version or retarget your application to a version of the framework for which you have the SDK or Targeting\nPack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of\n reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend. [c:\\Users\\IE\nUser\\Downloads\\InvoiceDemo-master\\src\\InvoiceDemo1\\InvoiceDemo.csproj]\nC:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\Microsoft.Common.targets(1605,5): warning MSB3270: There was a mismatch b\netween the processor architecture of the project being built \"AMD64\" and the processor architecture of the reference \"C\n:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\mscorlib.dll\", \"x86\". This mismatch may cause runtime failures. Please con\nsider changing the targeted processor architecture of your project through the Configuration Manager so as to align the\n processor architectures between your project and references, or take a dependency on references with a processor archi\ntecture that matches the targeted processor architecture of your project. [c:\\Users\\IEUser\\Downloads\\InvoiceDemo-master\n\\src\\InvoiceDemo1\\InvoiceDemo.csproj]\nGenerateTargetFrameworkMonikerAttribute:\nSkipping target \"GenerateTargetFrameworkMonikerAttribute\" because all output files are up-to-date with respect to the i\nnput files.\nGenerateTypedJSONCode:\nSkipping target \"GenerateTypedJSONCode\" because all output files are up-to-date with respect to the input files.\nCoreCompile:\nSkipping target \"CoreCompile\" because all output files are up-to-date with respect to the input files.\nCopyFilesToOutputDirectory:\n  InvoiceDemo -> c:\\Users\\IEUser\\Downloads\\InvoiceDemo-master\\src\\InvoiceDemo1\\bin\\Debug\\InvoiceDemo.exe\nDone Building Project \"c:\\Users\\IEUser\\Downloads\\InvoiceDemo-master\\src\\InvoiceDemo1\\InvoiceDemo.csproj\" (default targe\nts).\n\n\nBuild succeeded.\n\n\"c:\\Users\\IEUser\\Downloads\\InvoiceDemo-master\\src\\InvoiceDemo1\\InvoiceDemo.csproj\" (default target) (1) ->\n(GetReferenceAssemblyPaths target) ->\n  C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\Microsoft.Common.targets(983,5): warning MSB3644: The reference assembl\nies for framework \".NETFramework,Version=v4.5\" were not found. To resolve this, install the SDK or Targeting Pack for t\nhis framework version or retarget your application to a version of the framework for which you have the SDK or Targetin\ng Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place\nof reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend. [c:\\Users\\\nIEUser\\Downloads\\InvoiceDemo-master\\src\\InvoiceDemo1\\InvoiceDemo.csproj]\n\n\n\"c:\\Users\\IEUser\\Downloads\\InvoiceDemo-master\\src\\InvoiceDemo1\\InvoiceDemo.csproj\" (default target) (1) ->\n(ResolveAssemblyReferences target) ->\n  C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\Microsoft.Common.targets(1605,5): warning MSB3270: There was a mismatch\n between the processor architecture of the project being built \"AMD64\" and the processor architecture of the reference\n\"C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\mscorlib.dll\", \"x86\". This mismatch may cause runtime failures. Please c\nonsider changing the targeted processor architecture of your project through the Configuration Manager so as to align t\nhe processor architectures between your project and references, or take a dependency on references with a processor arc\nhitecture that matches the targeted processor architecture of your project. [c:\\Users\\IEUser\\Downloads\\InvoiceDemo-mast\ner\\src\\InvoiceDemo1\\InvoiceDemo.csproj]\n\n    2 Warning(s)\n    0 Error(s)\n\nTime Elapsed 00:00:00.15\n```\n\nAnd now a pleasant surprise. **The app actually works!** Confirmed with InvoiceDemo 1, 2 and 3.\n\n![image](https://cloud.githubusercontent.com/assets/566463/9941326/e7dd769c-5d74-11e5-9165-340d88480907.png)\n\nThe problem is, how to get rid of the yellow warnings?\n\nIf user needs to perform a series of setup actions, this should ideally be done by installer, or as a bat script that I can put on GitHub.\n"}}
{"actor":{"display_login":"chrhol"}}