{"id":21363987,"url":"https://github.com/walterlv/walterlv.issuedemo.apphostunexpectedoutput","last_synced_at":"2025-03-16T07:13:53.788Z","repository":{"id":194694798,"uuid":"691375111","full_name":"walterlv/Walterlv.IssueDemo.AppHostUnexpectedOutput","owner":"walterlv","description":null,"archived":false,"fork":false,"pushed_at":"2023-09-14T04:28:16.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T19:38:42.387Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/walterlv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-14T03:53:37.000Z","updated_at":"2023-09-14T03:53:43.000Z","dependencies_parsed_at":"2023-09-14T18:47:49.670Z","dependency_job_id":null,"html_url":"https://github.com/walterlv/Walterlv.IssueDemo.AppHostUnexpectedOutput","commit_stats":null,"previous_names":["walterlv/walterlv.issuedemo.apphostunexpectedoutput"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walterlv%2FWalterlv.IssueDemo.AppHostUnexpectedOutput","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walterlv%2FWalterlv.IssueDemo.AppHostUnexpectedOutput/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walterlv%2FWalterlv.IssueDemo.AppHostUnexpectedOutput/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walterlv%2FWalterlv.IssueDemo.AppHostUnexpectedOutput/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/walterlv","download_url":"https://codeload.github.com/walterlv/Walterlv.IssueDemo.AppHostUnexpectedOutput/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243836029,"owners_count":20355616,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-22T06:22:41.983Z","updated_at":"2025-03-16T07:13:53.765Z","avatar_url":"https://github.com/walterlv.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Solution dependency exe project outputs to main project directory with TargetFramework and not with TargetFrameworks\n\n- https://github.com/dotnet/sdk/issues/35379\n\n### Describe the bug\n\nPrerequisites:\n\n1. I have a project `A` that is an executable project; it depends on project `B`, which is also an executable project.\n2. Since the sole purpose of project `B` is to execute during the compilation of project `A`, project `A` doesn't directly depend on `B` (i.e., it doesn't explicitly reference project `B` in the csproj file). Moreover, I don't expect project `B` to be output to the final output directory of project `A`.\n3. The dependency between `A` and `B` is specified in the solution (sln) file.\n\nObservations:\n\n1. If the target framework of project `B` is set in singular form, then the `.exe`, `.deps.json`, and `.runtimeconfig.json` files of project `B` are output to the directory of project `A`. However, the `.dll` file is not. (This is an undesired outcome)\n2. If the target framework of project `B` is set in plural form, then none of the files from project `B` are output to the directory of project `A`. (This is the desired outcome)\n\n### To Reproduce\n\nI've prepared a super simple reproducible project, which is uploaded on GitHub. You can try cloning it to reproduce.\n\n- \u003chttps://github.com/walterlv/Walterlv.IssueDemo.AppHostUnexpectedOutput\u003e\n\nIn this project:\n\n1. `Walterlv.IssueDemo.AppHostUnexpectedOutput`, which refers to project `A` mentioned above.\n2. `Walterlv.IssueDemo.BeenDepended1`, which refers to project `B` mentioned above, with its target framework set in singular form.\n3. `Walterlv.IssueDemo.BeenDepended2`, also referring to project `B`, but with its target framework set in plural form.\n\nUpon trying to compile the solution, you'll notice that the output directory of `Walterlv.IssueDemo.AppHostUnexpectedOutput` contains `Walterlv.IssueDemo.BeenDepended1.exe`, but not `Walterlv.IssueDemo.BeenDepended2.exe`.\n\n### Exceptions (if any)\n\nNo exceptions found.\n\n### Further technical details\n\nThis issue occurs in the following SDK versions:\n\n```powershell\n\u003e dotnet --list-sdks\n7.0.400 [C:\\Program Files\\dotnet\\sdk]\n8.0.100-preview.7.23376.3 [C:\\Program Files\\dotnet\\sdk]\n```\n\nWithin the GitHub test project, I've included a global.json file. The issue appears both when using the preview version and when not using the preview version. These two tests correspond to the two different SDK versions mentioned above.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwalterlv%2Fwalterlv.issuedemo.apphostunexpectedoutput","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwalterlv%2Fwalterlv.issuedemo.apphostunexpectedoutput","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwalterlv%2Fwalterlv.issuedemo.apphostunexpectedoutput/lists"}