Skip to content
This repository has been archived by the owner on Oct 18, 2018. It is now read-only.

Build errors with non-English .NET #150

Closed
fabiodaniele opened this issue Aug 9, 2017 · 22 comments
Closed

Build errors with non-English .NET #150

fabiodaniele opened this issue Aug 9, 2017 · 22 comments
Assignees
Labels
cost: S Will take up to 2 days to complete Mapped to BigRock This issue is mapped to a big rock task

Comments

@fabiodaniele
Copy link

Hi,
I cloned the repo and tried to build it with the build.cmd script, but it fails due to many errors occurring in many test projects.

Could it depend on the configuration of my development environment?

My machine has Visual Studio 2017 installed.

@Eilon
Copy link
Member

Eilon commented Aug 15, 2017

@fabiodaniele can you show some examples of the errors you're getting?

@Eilon Eilon added this to the 2.0.0 milestone Aug 15, 2017
@garora
Copy link
Contributor

garora commented Aug 20, 2017

@Eilon, @fabiodaniele - is it something related to Issue#92 ?

@Eilon
Copy link
Member

Eilon commented Aug 21, 2017

@garora not sure, but we're working on getting this repo updated for ASP.NET Core, so I'm sure we'll have everything building.

If people can share the exact error(s) they're getting, plus info on the exact version of Visual Studio installed, that would be helpful!

@fabiodaniele
Copy link
Author

@Eilon @garora hi, sorry for the delay.

The log generated by the build command shows errors related to the execution of the test projects. Many exceptions are raised.

@garora It seems something really different from the issue you mentioned.

Here is a file containing the whole log as copied from the console window.
webhooks build errors.txt

Note
As I wrote, I use Visual Studio 2017.

I spent some effort in understand that, for the solution to build in Visual Studio, I needed to install the FxCop extension (never used before). But I'm not sure that my local dev environment is correct to build this solution.

What I mean is: without other info, I just can think I could need other extensions or I need to use another VS version.

So, imho, I believe it would be useful to write some docs about the correct configuration to work with the solution.

@garora
Copy link
Contributor

garora commented Aug 21, 2017

@fabiodaniele - I do not have 'Visual Studio 2017' installed on my current box, I could try the same within next couple of hours from now.

I did a try using Visual Studio 2015 Update3 and project is building perfectly using both Visual Studio and Build.bat file.

This is just a vague guess, nothing tested yet. Build.bat is using msbuild.exe 14.0 - please check if you have other exceptions related to msbuild version. Also, if required you can take a look here: Visual Studio 2017 msbuil

@fabiodaniele
Copy link
Author

fabiodaniele commented Aug 21, 2017

@garora I can't find any exception referring to msbuild.

The exceptions I see are raised by Assert.SomeAssertion(), but they don't seem related to msbuild.

If I look at the first lines in the log, I find:
Microsoft (R) Build Engine versione 14.0.23107.0,
do you think this to be the reason for the errors?

Anyway, now I try to also look at the link you suggested :-)

@garora
Copy link
Contributor

garora commented Aug 21, 2017

@fabiodaniele - I can't say anything until I tried it using Visual Studio 2017 update3 (latest one). I will try and post here after several hours. I am sorry, I can't do it right now due to unavailability of Visual Studio 2017 on my dev box.

@fabiodaniele
Copy link
Author

@garora Don't worry! In the meanwhile, I try to replicate the issue on another (newer and cleaner) PC, hoping to find out more.

@garora
Copy link
Contributor

garora commented Aug 21, 2017

@fabiodaniele - best of luck and thanks

@fabiodaniele
Copy link
Author

@garora, I hope this could help.

I tried on another PC, where I never installed VS versions prior to 2017, just to understand if traces of other installations are causing the issue on my main PC.

So, on my secondary PC, i did the following:

  1. cloned the repo
  2. opened command prompt at repo folder
  3. executed build.cmd -> it initialized Azure Storage Emulator and prompted the SkipStrongNames error
  4. executed build.cmd EnableSkipStrongNames -> no errors
  5. executed build.cmd again -> well, I got the same issue as on my main PC: 12 tests failed

@garora
Copy link
Contributor

garora commented Aug 21, 2017

@fabiodaniele - It seems, issues are with Visual Studio 2017. Give me some time to analyze and I come back with more information.

@Eilon
Copy link
Member

Eilon commented Aug 21, 2017

Thanks for the extra info, we'll investigate. Just to be clear, these are test failures, not compilation failures (which confused me, because in my mind "build" == "compile"), but I get that build.cmd runs everything, and it's failing.

@garora
Copy link
Contributor

garora commented Aug 22, 2017

@fabiodaniele - I tried on a new Dev box with a fresh install of Visual Studio 2017 Preview, here are the steps (I performed):
P.S. I have already cloned the repository [garora/WebHooks]

  1. Opened the command prompt win+R
  2. Moved to my cloned repository folder
  3. Initaited build.cmd --- Got StrongName error
  4. Disabled strongName build.cmd EnableSkipStrongNames
  5. Again initiated build.cmd

Everything is passed and Build successful Time Elapsed 00:28:45.36.
You can check Build log

I suggest, drill-down the failing tests eg. Microsoft.AspNet.WebHooks.Common.Test is failing for you that should not be.

@Eilon - This is working for me as expected. I would appreciate if you can look into the issue #92 that is a roadblock for #15

@fabiodaniele
Copy link
Author

@Eilon - Yes, those are test failures, so I'm sorry that the title I used for this issue may have confused you.

@garora - This is really strange to me, because I did the same thing. Also, I can notice that the log you attached is not the console output generated by build.cmd. So It's hard for me to believe that the issue is not replicating on your new dev box.

Anyway, the point for me is:
if the my dev environment is wrong, I'd like to know which is the correct one (VS version, extensions needed and so on), so I can be sure to contribute to the project without doubts about quality.

I already tried to develop what I proposed with the issue #147, but:

  • I had to do some reverse engineering of the solution to understand that VS needs some extensions to be installed
  • after this, I had to make a lot of hacking to make the new projects I added in the solution to be compatible with the existing solution conventions (such as FxCop and the build.cmd script)
  • then, the tests I've written for the new receiver, even if written in the same way (at least, is what I think to have done) as the others currently existing in the solutions, fail in a similar fashion when executing the build script.

In my opinion, the problem is not about the fails themselves. The problem is that I don't think this to be an acceptable workflow. And, always in my opinion, this is due to a lack in informations on about collaborating to the project.

I don't think it's enough to ask new contributors to sign an agreement. I think it is also (and above all) important to share some documents about the proper configuration of the dev environment needed for collaborating to the project.

I'm really sorry for critizing, but I hope you'll really understand that I am doing this for constructive and collaborative purposes.

And I really thank you for all the support :-)

@garora
Copy link
Contributor

garora commented Aug 22, 2017

@fabiodaniele - First of all, I understand you are running through lot of issues. Don't worry, it happened in a dev's life. Regarding log, I attached is a log generated from buil.cmd and can be found in bin folder. Regarding your question about the Visual Studio version - Visual Studio 2015 or later .
Regarding your suggestions for documentations, I agreed with you, I am the one who is contributing since inception of this repository, so, I knew what all are required to execute the repository. Give me time to prepare a doc for this. Meanwhile, we can connect offline, I would be happy to help.

@fabiodaniele
Copy link
Author

@garora Thank you :-)

@Eilon
Copy link
Member

Eilon commented Aug 23, 2017

Indeed, we are working as hard as we can to get this repo back into shape - we let it go a little bit stale for a while so sorry about that.

@garora
Copy link
Contributor

garora commented Aug 23, 2017

@Eilon - Thanks for your reply. I will wait until it get back. Just a thought - the issue, I was mentioned in not related to ASP.NET WebHooks, I believe that is a generic issue, where Visual Studio is unable to find the symbols. Is there any way, we can check with Visual Studio folks or is there any other platform, where I can ask this query?

@Eilon
Copy link
Member

Eilon commented Aug 23, 2017

@garora the built-in "VS Feedback" tool is the best way to report issues with VS. That will send the right diagnostic info and get routed to the sub-team within VS who can investigate.

@garora
Copy link
Contributor

garora commented Sep 25, 2017

@fabiodaniele - I've written a free ebook on WebHooks, it'd be helpful: free ebook.

@dougbu
Copy link
Member

dougbu commented Oct 8, 2017

Looks as if some of the tests are culture-specific. The webhooks build errors.txt file shows Italian error messages where English is expected.

These tests need something similar to ASP.NET Core's [ReplaceCulture] or the earlier version from ASP.NET Web Stack.

@dougbu dougbu modified the milestones: 2.0.0-preview1, 2.0.0-preview2 Jan 16, 2018
@dougbu dougbu changed the title Build errors Build errors with non-English .NET Jan 19, 2018
@mkArtakMSFT mkArtakMSFT added the Mapped to BigRock This issue is mapped to a big rock label Mar 1, 2018
@dougbu dougbu added the cost: S Will take up to 2 days to complete label Mar 3, 2018
@aspnet-hello
Copy link

This issue was moved to aspnet/AspNetWebHooks#23

@aspnet aspnet locked and limited conversation to collaborators Mar 13, 2018
@aspnet-hello aspnet-hello removed this from the 1.0.0-preview2 milestone Mar 13, 2018
@dougbu dougbu removed the 1 - Ready label Apr 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cost: S Will take up to 2 days to complete Mapped to BigRock This issue is mapped to a big rock task
Projects
None yet
Development

No branches or pull requests

6 participants