Quantcast
Channel: MSBuild Extension Pack
Viewing all articles
Browse latest Browse all 1211

Commented Issue: AssemblyInfo task can not handle single quotes in attribute constructors [12861]

$
0
0
#Description

It's unusual but I've come across some assembly info files that contain single quotes in the attribute values. Below is an example

```
using System.Reflection;
using System.Runtime.InteropServices;

[assembly : AssemblyTitle("DTOs - .... platform")]
[assembly : AssemblyDescription("Client's bank account.")]
```

The assembly info task treats any line that contains a single quote as a VB comment.

#Fix
Tweak the regular expression in AssemblyInfoWrapper to only treat lines that start with (ignoring whitespace) a single quote as VB comment lines

#Patch
Submitted
Comments: ** Comment from web user: ewilde **

No problem, please find attached changes zipped.


Viewing all articles
Browse latest Browse all 1211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>