我们如何在使用visual studio 创建的Web 安装程序中添加自述文件。安装产品后,自述文件的路径应显示在控制面板中。
我正在使用visual studio设置项目来创建我的msi安装程序.我的要求是使用相同的安装程序创建应用程序的多个实例,而不更改版本号/产品代码.
没有使用Wix/Installshield有没有办法做到这一点.
请考虑以下方法.我被问到异常,而转发器绑定.
Bindrepeater:
private void BindRepeater()
{
var idx = ListingPager.CurrentIndex;
int itemCount;
var keyword = Keywords.Text.Trim();
var location = Area.Text.Trim();
var list = _listing.GetBusinessListings(location, keyword, idx, out itemCount);
ListingPager.ItemCount = itemCount;
BusinessListingsRepeater.DataSource = list.ToList(); // exception here
BusinessListingsRepeater.DataBind();
}
Run Code Online (Sandbox Code Playgroud)
GetBusinessListings:
public IEnumerable<Listing> GetBusinessListings(string location, string keyword, int index, out int itemcount)
{
var skip = GetItemsToSkip(index);
var result = CompiledQueries.GetActiveListings(Context);
if (!string.IsNullOrEmpty(location))
{
result= result.Where(c => c.Address.Contains(location));
}
if (!string.IsNullOrEmpty(keyword))
{
result = result.Where(c => c.RelatedKeywords.Contains(keyword) || c.Description.Contains(keyword));
}
var …Run Code Online (Sandbox Code Playgroud)