{"action":"created","issue":{"url":"https://api.github.com/repos/NuGet/Home/issues/6723","repository_url":"https://api.github.com/repos/NuGet/Home","labels_url":"https://api.github.com/repos/NuGet/Home/issues/6723/labels{/name}","comments_url":"https://api.github.com/repos/NuGet/Home/issues/6723/comments","events_url":"https://api.github.com/repos/NuGet/Home/issues/6723/events","html_url":"https://github.com/NuGet/Home/issues/6723","id":307616232,"number":6723,"title":"Test Failures due to auto redirection for nuget packages in VS","user":{"login":"cltshivash","id":18257951,"avatar_url":"https://avatars1.githubusercontent.com/u/18257951?v=4","gravatar_id":"","url":"https://api.github.com/users/cltshivash","html_url":"https://github.com/cltshivash","followers_url":"https://api.github.com/users/cltshivash/followers","following_url":"https://api.github.com/users/cltshivash/following{/other_user}","gists_url":"https://api.github.com/users/cltshivash/gists{/gist_id}","starred_url":"https://api.github.com/users/cltshivash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cltshivash/subscriptions","organizations_url":"https://api.github.com/users/cltshivash/orgs","repos_url":"https://api.github.com/users/cltshivash/repos","events_url":"https://api.github.com/users/cltshivash/events{/privacy}","received_events_url":"https://api.github.com/users/cltshivash/received_events","type":"User","site_admin":false},"labels":[{"id":745670241,"url":"https://api.github.com/repos/NuGet/Home/labels/ClosedAs:NotABug","name":"ClosedAs:NotABug","color":"006b75","default":false},{"id":470174128,"url":"https://api.github.com/repos/NuGet/Home/labels/Style:Packages.Config","name":"Style:Packages.Config","color":"5319e7","default":false}],"state":"closed","locked":false,"assignee":{"login":"mishra14","id":10507120,"avatar_url":"https://avatars1.githubusercontent.com/u/10507120?v=4","gravatar_id":"","url":"https://api.github.com/users/mishra14","html_url":"https://github.com/mishra14","followers_url":"https://api.github.com/users/mishra14/followers","following_url":"https://api.github.com/users/mishra14/following{/other_user}","gists_url":"https://api.github.com/users/mishra14/gists{/gist_id}","starred_url":"https://api.github.com/users/mishra14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mishra14/subscriptions","organizations_url":"https://api.github.com/users/mishra14/orgs","repos_url":"https://api.github.com/users/mishra14/repos","events_url":"https://api.github.com/users/mishra14/events{/privacy}","received_events_url":"https://api.github.com/users/mishra14/received_events","type":"User","site_admin":false},"assignees":[{"login":"mishra14","id":10507120,"avatar_url":"https://avatars1.githubusercontent.com/u/10507120?v=4","gravatar_id":"","url":"https://api.github.com/users/mishra14","html_url":"https://github.com/mishra14","followers_url":"https://api.github.com/users/mishra14/followers","following_url":"https://api.github.com/users/mishra14/following{/other_user}","gists_url":"https://api.github.com/users/mishra14/gists{/gist_id}","starred_url":"https://api.github.com/users/mishra14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mishra14/subscriptions","organizations_url":"https://api.github.com/users/mishra14/orgs","repos_url":"https://api.github.com/users/mishra14/repos","events_url":"https://api.github.com/users/mishra14/events{/privacy}","received_events_url":"https://api.github.com/users/mishra14/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/NuGet/Home/milestones/67","html_url":"https://github.com/NuGet/Home/milestone/67","labels_url":"https://api.github.com/repos/NuGet/Home/milestones/67/labels","id":2686855,"number":67,"title":"Backlog","description":"These issues are important enough to keep around.\r\nWe'll fix them in priority order. We use labels to mark priority. \r\nPriorities may change based on customer feedback.","creator":{"login":"rrelyea","id":8865080,"avatar_url":"https://avatars1.githubusercontent.com/u/8865080?v=4","gravatar_id":"","url":"https://api.github.com/users/rrelyea","html_url":"https://github.com/rrelyea","followers_url":"https://api.github.com/users/rrelyea/followers","following_url":"https://api.github.com/users/rrelyea/following{/other_user}","gists_url":"https://api.github.com/users/rrelyea/gists{/gist_id}","starred_url":"https://api.github.com/users/rrelyea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rrelyea/subscriptions","organizations_url":"https://api.github.com/users/rrelyea/orgs","repos_url":"https://api.github.com/users/rrelyea/repos","events_url":"https://api.github.com/users/rrelyea/events{/privacy}","received_events_url":"https://api.github.com/users/rrelyea/received_events","type":"User","site_admin":false},"open_issues":805,"closed_issues":110,"state":"open","created_at":"2017-08-07T23:11:02Z","updated_at":"2018-05-25T19:14:07Z","due_on":null,"closed_at":null},"comments":24,"created_at":"2018-03-22T12:07:30Z","updated_at":"2018-05-26T17:34:31Z","closed_at":"2018-05-09T17:42:57Z","author_association":"NONE","body":"## Details about Problem\r\n\r\nNuGet product used : VS 15.6.2 update\r\n\r\nVS version (if appropriate):\r\n\r\nOS version (i.e. win10 v1607 (14393.321)): N/A\r\n\r\n## Detailed repro steps so we can see the same problem\r\n\r\nUsers authoring test projects are running into issues with with the auto redirection being added without the right assemblies being present in the output location. More details below.\r\n\r\n**Repro** (https://github.com/smadala/samples/tree/master/Test%20Explorer%20fails%20to%20show%20tests/ClassLibrary.Tests)\r\nhttps://github.com/spottedmahn/Experiments/tree/master/Test%20Explorer%20fails%20to%20show%20tests\r\n\r\n**Detailed Repro Steps**\r\n\r\n1.  Create a simple class library (full clr) and add System.runtime 4.3.0 to the classlibrary\r\n2.  There’s no binding redirect added on adding just the system.runtime’s 4.3.0 version to the classlibrary.\r\n3.  Create a test project exercising the classlibrary (Test -> Unit Test Project)\r\n4.  Execute the test, from the test explorer the tests execute fine with System.RunTime.dll being picked from GAC (4.0.0.0) version (which is the test platform/framework dependency)\r\n5.  Add Moq nuget package to the test project (version 4.8.*). When Moq.dll is added to the test project, the app.config of the test project gets updated with the redirect for the System.RunTime to 4.1.1.0. There’s no reference added to the test project appropriate dll (System.RunTime.dll 4.1.1.0 version).\r\n6.  Run the tests, the test fails to execute. When the tests execute the configuration provided in dll.config is used to setup an appdomain for test execution. The appbase for the appdomain is the output directory of the test project. Since the System.Runtime.dll (4.1.1.0) is not present in the test project output path the execution fails (the error message doesn't indicate the dll that failed and has been fixed to provide a meaningful message in an upcoming update)\r\n7.  Now uninstall Moq.dll (which added the redirection in the first place). The redirection still stays in the test project.\r\n8.  The issue doesn’t repro when the test projects target 4.7.1 (looks like some consolidation that’s being talked of here dotnet/corefx#25773 is helping)\r\n9.  The issue can be mitigated by either removing the redirects or by adding a reference to the 4.1.1.0 version of the System.Runtime.dll and ensuring that it is present in the test output path.\r\n\r\nThis is affecting a lot of users (as seen in https://github.com/Microsoft/testfx/issues/241). If this isn't the right place to track this issue, do let me know."},"comment":{"url":"https://api.github.com/repos/NuGet/Home/issues/comments/392276359","html_url":"https://github.com/NuGet/Home/issues/6723#issuecomment-392276359","issue_url":"https://api.github.com/repos/NuGet/Home/issues/6723","id":392276359,"user":{"login":"StingyJack","id":15381181,"avatar_url":"https://avatars1.githubusercontent.com/u/15381181?v=4","gravatar_id":"","url":"https://api.github.com/users/StingyJack","html_url":"https://github.com/StingyJack","followers_url":"https://api.github.com/users/StingyJack/followers","following_url":"https://api.github.com/users/StingyJack/following{/other_user}","gists_url":"https://api.github.com/users/StingyJack/gists{/gist_id}","starred_url":"https://api.github.com/users/StingyJack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StingyJack/subscriptions","organizations_url":"https://api.github.com/users/StingyJack/orgs","repos_url":"https://api.github.com/users/StingyJack/repos","events_url":"https://api.github.com/users/StingyJack/events{/privacy}","received_events_url":"https://api.github.com/users/StingyJack/received_events","type":"User","site_admin":false},"created_at":"2018-05-26T17:34:31Z","updated_at":"2018-05-26T17:34:31Z","author_association":"CONTRIBUTOR","body":"I wasn't blocked. Once i realized that half the unit tests were not being executed for gated checkin builds, working around it was done in short order. But its _every single test project that gets created_ that I have to either fix or show someone how to fix, or we are at risk of unintentionally delivering broken code to a customer.\r\n\r\nYou are leaving me with two choices really; use a package management system that is going to cost me a lot of time, that is buggy, and that has less features, or continue the manual hack I have now in perpetuity, So I can use MSTest and have it discover and run all the tests that are actually present.\r\n\r\nDoesnt seem right..."}}
{"actor":{"display_login":"StingyJack"}}