Quantcast
Channel: wixsharp Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1354

New Post: Adding files starting with . is giving error

$
0
0
If you don't need to deploy these files then use filter in the Files constructor.

If you indeed need them then you need to assign an explicit Id to such file (s) as the auto-Id will be based on the file name. And WiX doesn't like when it starts with it is dot. Have a look at ReleseFolder sample.

Most likely the following code will help:
//call it just befor BuildMsi()
project.ResolveWildCards(ignoreEmptyDirectories: true)
       .AllFiles.Where(f => f.Id.StartsWith("."))
       .ForEach(f => f.Id = f.Id.Replace(".", "_"));

Viewing all articles
Browse latest Browse all 1354

Trending Articles



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