如何使用Compact Framework加粗文本(How to bold text With Compact Framework)
我有一个用C#编写的用于紧凑框架(3.5)的应用程序。
我试图以粗体显示表单上的一些文本。
Label
类没有给我提供加粗文字的选项(我可以把它做大,最终给出一个大胆的外观,但我希望我的文字12pt和粗体。这可能吗? 如果是这样如何?
谢谢你的想法。
I have an app written in C# for the compact framework (3.5).
I am trying to display some text on the form in bold.
The
Label
class does not give me the option to bold my text (I can make it bigger, which eventually gives a bold look, but I want my text 12pt and bold.Is this possible? If so How?
thanks for any ideas.
原文:https://stackoverflow.com/questions/2650742
更新时间:2023-04-07 10:04
最满意答案
尝试这样的事情:
<plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <executions> <execution> <id>attach-artifacts</id> <phase>package</phase> <goals> <goal>attach-artifact</goal> </goals> <configuration> <artifacts> <artifact> <file>target/my-custom-archive.zip</file> <type>zip</type> <classifier>dist</classifier> </artifact> </artifacts> </configuration> </execution> </executions> </plugin>
Try something like this:
<plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <executions> <execution> <id>attach-artifacts</id> <phase>package</phase> <goals> <goal>attach-artifact</goal> </goals> <configuration> <artifacts> <artifact> <file>target/my-custom-archive.zip</file> <type>zip</type> <classifier>dist</classifier> </artifact> </artifacts> </configuration> </execution> </executions> </plugin>
相关问答
更多-
要回答我自己的问题,问题是我后来标记了所提供的依赖关系,以便它们不会被传递到我的其他项目中。 这导致阴影插件不包括在阴影罐中。 To answer my own question, the problem was that I later marked the dependencies-to-be-shaded as provided so that they don't get transitively pulled into my other projects. That caused shade pl ...
-
你可以删除目录〜/ .m2 / com / example / A / 1.0 /并重新安装A,然后使用-U选项构建B. you can delete directory ~/.m2/com/example/A/1.0/ and reinstall A ,then you build B with -U option.
-
如何在maven中指定我想要安装/部署的工件名称(How to specify artifact name in maven that I want installed/deployed)[2023-05-24]
尝试这样的事情:org.codehaus.mojo build-helper-maven-plugin attach-artifacts package attach ... -
Sonar Maven文档建议运行Maven如下 mvn clean install -DskipTests=true mvn sonar:sonar “替代方法”部分描述了如何将这些目标作为一个步骤执行,但随后测试将运行两次。 我不认为你可以做很多事情来避免创建2-3个Maven构建步骤,但是,可以配置构建断路器插件以在违反指定的质量标准时自动使构建失败。 Ok, the method I used eventually is three separate build steps, as follows ...
-
在http://docs.codehaus.org/display/MAVENUSER/Mojo+Developer+Cookbook的帮助下解决 /** * The local maven repository. * * @parameter expression="${localRepository}" * @required * @readonly */ @SuppressWarnings("UWF_UNWRITTEN_FIELD") private ArtifactRepository ...
-
将Maven repo目录结构浏览到相关工件,有一个名为maven-metadata-central.xml的文件,其中包含格式为YYYYMMDDHHMISS的lastUpdated字段。 Browse the Maven repo directory structure to the relevant artifact, there is a file named maven-metadata-central.xml which contains a lastUpdated field formatted ...
-
使用分类器部署工件时,Maven部署到Nexus失败(Maven Deploy to Nexus Fails When Deploying Artifact with Classifier)[2023-09-30]
此问题是由IIS代理中的请求筛选限制引起的。 默认情况下,允许的最大内容长度为30 MB。 这阻止了我的约90 MB的jar文件。 将限制增加到512 MB可解决问题。 This issue was caused by request filtering limits in an IIS proxy. By default, the maximum allowed content length was 30 MB. This was blocking my post of a ~90 MB jar file ... -
这是Maven 3.5.0中的一个错误,并且只要3.5.1发布就会解决。 最初的bug报告标记了deploy-plugin( https://issues.apache.org/jira/browse/MDEPLOY-221 )但是它与maven核心有关: https : //issues.apache.org/jira/browse / MNG-6240 。 我们在工作中遇到了同样的问题,在对mavens问题跟踪器进行了一些挖掘和搜索后,我找到了上述链接。 我建议在等待3.5.1出现时降级。 This i ...
-
仅在部署之后,Maven更新在安装工件后不起作用(Maven update doesn't work after installing artifact, only after deploy)[2022-03-01]
mvn install将构建的jar安装到〜/ m2 / repository /的本地存储库。 在快照方面, mvn install用新的快照替换旧快照。 您的本地回购似乎存在问题。 因此,我建议从本地存储库中删除当前快照,然后重试。 在最坏的情况下,删除整个〜/ .m2 repo并再试一次。 现在,您通过将工件上传到远程和repo(通过mvn deploy )并使用mvn -U compile再次下载来进行艰难的操作。 根据评论 - 它似乎是maven-install-plugin中的一个错误。 最新版 ... -
不太可能,但是如果你使用Maven构建工件,那么你已经拥有了每个相关工件的副本 - 在本地存储库中。 如果您不时备份它,您将获得必要的安全级别。 或者,使用公司存储库管理器(Nexus / Artifactory)代理MavenCentral。 它还将保留使用过的工件的副本。 Unlikely, but if you build your artifacts with Maven, you already have a copy of each relevant artifact - in your loc ...