{"id":16473077,"url":"https://github.com/binki/msbuildvisualstudio17_6writecodefragmentregression","last_synced_at":"2026-01-30T13:05:29.342Z","repository":{"id":170684675,"uuid":"646207669","full_name":"binki/MsBuildVisualStudio17_6WriteCodeFragmentRegression","owner":"binki","description":"Reproduce an issue with WriteCodeFragment in visualstudio-17.6","archived":false,"fork":false,"pushed_at":"2023-05-29T15:50:18.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-12T12:08:11.685Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/binki.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-27T16:23:49.000Z","updated_at":"2023-05-27T16:23:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"8e6b13a1-5903-479f-8657-84ac04d130a9","html_url":"https://github.com/binki/MsBuildVisualStudio17_6WriteCodeFragmentRegression","commit_stats":null,"previous_names":["binki/msbuildvisualstudio17_6writecodefragmentregression"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/binki/MsBuildVisualStudio17_6WriteCodeFragmentRegression","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binki%2FMsBuildVisualStudio17_6WriteCodeFragmentRegression","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binki%2FMsBuildVisualStudio17_6WriteCodeFragmentRegression/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binki%2FMsBuildVisualStudio17_6WriteCodeFragmentRegression/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binki%2FMsBuildVisualStudio17_6WriteCodeFragmentRegression/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/binki","download_url":"https://codeload.github.com/binki/MsBuildVisualStudio17_6WriteCodeFragmentRegression/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binki%2FMsBuildVisualStudio17_6WriteCodeFragmentRegression/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28913380,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T12:13:43.263Z","status":"ssl_error","status_checked_at":"2026-01-30T12:13:22.389Z","response_time":66,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-10-11T12:25:15.455Z","updated_at":"2026-01-30T13:05:29.302Z","avatar_url":"https://github.com/binki.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Visual Studio 17.6.x WriteCodeFragment Regression\n\nWhen using the `WriteCodeFragment` task in Visual Studio 17.6.0 (tested) and 17.6.2 (tested) (it is assumed that 17.6.1 is affected as well as unreleased future versions) with an `OutputFile` parameter referring to a file which starts with a dot (`.`), an error is encountered.\n\nConsider this excerpt from `.csproj` which would be in a `Target`:\n\n```xml\n\u003cItemGroup\u003e\n  \u003cTestAttribute Include=\"System.Reflection.AssemblyTitleAttribute\"\u003e\n    \u003c_Parameter1\u003e1.2.3\u003c/_Parameter1\u003e\n  \u003c/TestAttribute\u003e\n\u003c/ItemGroup\u003e\n\u003cWriteCodeFragment AssemblyAttributes=\"@(TestAttribute)\" Language=\"C#\" OutputFile=\".test.cs\" /\u003e\n```\n\nThe above fails with this error:\n\n```\nC:\\Users\\binki\\source\\repos\\MsBuildVisualStudio17_6WriteCodeFragmentRegression\\proj.csproj(11,5): error MSB3713: The file \".test.cs\" could not be created. Path cannot be the empty string or all whitespace.\n```\n\n## Tests\n\n### 17.5.5\n\nBug absent. This error is not reproducible in visualstudio-17.5.5 (tested):\n\n```\nMSBuild version 17.5.1+f6fdcf537 for .NET Framework\n17.5.1.16304\n```\n\n```\nMicrosoft Visual Studio Professional 2022\nVersion 17.5.5\nVisualStudio.17.Release/17.5.5+33627.172\nMicrosoft .NET Framework\nVersion 4.8.09032\n\nInstalled Version: Professional\n\nASP.NET and Web Tools   17.5.320.55692\nASP.NET and Web Tools\n\nAzure App Service Tools v3.0.0   17.5.320.55692\nAzure App Service Tools v3.0.0\n\nC# Tools   4.5.2-3.23171.7+d17f741546fad2786cbd6394d08619544e53a36d\nC# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.\n\nCommon Azure Tools   1.10\nProvides common services for use by Azure Mobile Services and Microsoft Azure Tools.\n\nMicrosoft JVM Debugger   1.0\nProvides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines\n\nNuGet Package Manager   6.5.0\nNuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/\n\nRazor (ASP.NET Core)   17.5.2.2316603+9f1b6856460af1e592d387ebef416eadddac453f\nProvides languages services for ASP.NET Core Razor.\n\nSQL Server Data Tools   17.2.40120.0\nMicrosoft SQL Server Data Tools\n\nTypeScript Tools   17.0.20105.2003\nTypeScript Tools for Microsoft Visual Studio\n\nVisual Basic Tools   4.5.2-3.23171.7+d17f741546fad2786cbd6394d08619544e53a36d\nVisual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.\n\nVisual F# Tools   17.5.0-beta.23053.5+794b7c259d9646a7eb685dad865aa27da7940a21\nMicrosoft Visual F# Tools\n```\n\n### 17.6.0\n\nBug present.\n\n```\nMSBuild version 17.6.3+07e294721 for .NET Framework\n17.6.3.22601\n```\n\n```\nMicrosoft Visual Studio Community 2022\nVersion 17.6.0\nVisualStudio.17.Release/17.6.0+33712.159\nMicrosoft .NET Framework\nVersion 4.8.09032\n\nInstalled Version: Community\n\nVisual C++ 2022   00482-90000-00000-AA915\nMicrosoft Visual C++ 2022\n\nASP.NET and Web Tools   17.6.326.62524\nASP.NET and Web Tools\n\nAzure App Service Tools v3.0.0   17.6.326.62524\nAzure App Service Tools v3.0.0\n\nC# Tools   4.6.0-3.23259.8+c3cc1d0ceeab1a65da0217e403851a1e8a30086a\nC# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.\n\nCommon Azure Tools   1.10\nProvides common services for use by Azure Mobile Services and Microsoft Azure Tools.\n\nMicrosoft JVM Debugger   1.0\nProvides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines\n\nNuGet Package Manager   6.6.0\nNuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/\n\nRazor (ASP.NET Core)   17.6.0.2326105+37f2727000f6a964584cafb86e69cf0b39baecb7\nProvides languages services for ASP.NET Core Razor.\n\nSQL Server Data Tools   17.6.13.0\nMicrosoft SQL Server Data Tools\n\nSQL Server Reporting Services   16.0.20286.0\nMicrosoft SQL Server Reporting Services Designers \nVersion 16.0.20286.0\n\nSyntax Visualizer   1.0\nAn extension for visualizing Roslyn SyntaxTrees.\n\nTypeScrip   17.0.20329.2001\nTypeScript Tools for Microsoft Visual Studio\n\nVisual Basic Tools   4.6.0-3.23259.8+c3cc1d0ceeab1a65da0217e403851a1e8a30086a\nVisual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.\n\nVisual F# Tools   17.6.0-beta.23174.5+0207bea1afae48d9351ac26fb51afc8260de0a97\nMicrosoft Visual F# Tools\n\nVisual Studio IntelliCode   2.2\nAI-assisted development for Visual Studio.\n```\n\n### 17.6.2\n\nBug present.\n\n```\nMSBuild version 17.6.3+07e294721 for .NET Framework\n17.6.3.22601\n```\n\n```\nMicrosoft Visual Studio Professional 2022\nVersion 17.6.2\nVisualStudio.17.Release/17.6.2+33723.286\nMicrosoft .NET Framework\nVersion 4.8.09032\n\nInstalled Version: Professional\n\nASP.NET and Web Tools   17.6.326.62524\nASP.NET and Web Tools\n\nAzure App Service Tools v3.0.0   17.6.326.62524\nAzure App Service Tools v3.0.0\n\nC# Tools   4.6.0-3.23259.8+c3cc1d0ceeab1a65da0217e403851a1e8a30086a\nC# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.\n\nCommon Azure Tools   1.10\nProvides common services for use by Azure Mobile Services and Microsoft Azure Tools.\n\nMicrosoft JVM Debugger   1.0\nProvides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines\n\nNuGet Package Manager   6.6.0\nNuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/\n\nRazor (ASP.NET Core)   17.6.0.2326105+37f2727000f6a964584cafb86e69cf0b39baecb7\nProvides languages services for ASP.NET Core Razor.\n\nSQL Server Data Tools   17.6.13.0\nMicrosoft SQL Server Data Tools\n\nSQL Server Reporting Services   16.0.20309.0\nMicrosoft SQL Server Reporting Services Designers \nVersion 16.0.20309.0\n\nTypeScript Tools   17.0.20329.2001\nTypeScript Tools for Microsoft Visual Studio\n\nVisual Basic Tools   4.6.0-3.23259.8+c3cc1d0ceeab1a65da0217e403851a1e8a30086a\nVisual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.\n\nVisual F# Tools   17.6.0-beta.23174.5+0207bea1afae48d9351ac26fb51afc8260de0a97\nMicrosoft Visual F# Tools\n\nVisual Studio IntelliCode   2.2\nAI-assisted development for Visual Studio.\n````\n\n## Status\n\nThis has been reported to Microsoft as [Visual Studio feedback item 10378111](https://developercommunity.visualstudio.com/t/-/10378111).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinki%2Fmsbuildvisualstudio17_6writecodefragmentregression","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbinki%2Fmsbuildvisualstudio17_6writecodefragmentregression","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinki%2Fmsbuildvisualstudio17_6writecodefragmentregression/lists"}