小编Pra*_*ash的帖子

How show version number in title of installation in WIX?

I need to display the version number in the title along with the application name.

Currently, it looks like

在此处输入图片说明

Here is my wix snippet:

<Product Id="$(var.ProductId)" Name="Test Application" Language="1033" Version="$(var.ProductVersion)" Manufacturer="Test1111 Inc" 
       UpgradeCode="C9BC6B42-FCAF-4E96-8F8F-E9D0AC4F393B">
Run Code Online (Sandbox Code Playgroud)

If I change it (append version number in the Name attribute) as below, it will display the version number in all the places Title, Welcome text/description but I just want to change in Title.

<Product Id="$(var.ProductId)" Name="Test Application $(var.ProductVersion)" Language="1033" Version="$(var.ProductVersion)" Manufacturer="Test1111 Inc" 
       UpgradeCode="C9BC6B42-FCAF-4E96-8F8F-E9D0AC4F393B">
Run Code Online (Sandbox Code Playgroud)

How we can …

c# wix wix3 visual-studio

6
推荐指数
2
解决办法
1477
查看次数

如何使用 Graph API 在 MS Teams 中发布消息

我正在尝试使用以下代码使用 Graph API 向 MS Teams 发送消息。

 List<Recipient> recipients = new List<Recipient>();
        recipients.Add(new Recipient
        {
            EmailAddress = new EmailAddress
            {
                Address = "user1@abctest.onmicrosoft.com"
            }
        });

        // Create the message.
        Message msg = new Message
        {
            Body = new ItemBody
            {
                Content = "Test message3",
                ContentType = BodyType.Text,
            },
            ToRecipients = recipients
        };

        _graphServiceClient.Users["fe0bb333-3334c49-a3eb-25af61fed1db"].SendMail(msg, true).Request().PostAsync().Wait();
Run Code Online (Sandbox Code Playgroud)

此代码不会在 MS Team 中发送消息,而是在电子邮件中发送该消息。

我正在遵循文档https://learn.microsoft.com/en-us/graph/api/message-send?view=graph-rest-1.0并尝试 Graph Explorer 发送消息但无法正常工作。

帖子:https://graph.microsoft.com/v1.0/users/fe0bb333-3335-4c49-a3eb-25af61fed1db/messages/22229b36-a7cb-4a33-a9f9-dd75742bf067/send

请求正文

{“正文”:“你好世界”}

但是,我从 Graph Explorer 收到以下错误:

{
    "error": {
        "code": "ErrorInvalidIdMalformed",
        "message": "Id is …
Run Code Online (Sandbox Code Playgroud)

c# microsoft-teams microsoft-graph-api

3
推荐指数
1
解决办法
3万
查看次数