# Publish a library

**URL:** <https://community.particle.io/t/publish-a-library/26022>\
**Category:** Libs 2.0 Beta\
**Created:** [September 22, 2016, 5:57pm UTC](https://community.particle.io/t/publish-a-library/26022 "2016-09-22T17:57:32Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [November 19, 2016, 6:09pm UTC](https://community.particle.io/t/publish-a-library/26022/8 "2016-11-19T18:09:21Z")

</div>

@jvanier, I just tried to contribute/publish my first 2.0 lib, but got this

```nohighlight
Library is not valid. main source is missing
main header is missing

```

That’s particularly surprising since the respective “ol’ school” library migrated via

```nohighlight
particle library migrate

```

without issue, but the subsequent

```nohighlight
particle library contribute

```

failed (when executed from the same direcory as the previous _migrate_ command).  
What have I done wrong?

BTW, once I will be able to contribute, how could I instruct CLI to build one of the embedded examples?

* * *

```nohighlight
C:\Users\Andy\Dropbox\DokumenteAndy\Particle\ParticleSoftSerial
| library.properties
| LICENSE
| project.properties
| readme.md
|
+---examples
| \---PSS_SimpleTest
| PSS_SimpleTest.ino
|
\---src
    | ParticleSoftSerial.cpp
    | ParticleSoftSerial.h
    |
    \---ParticleSoftSerial
            ParticleSoftSerial.h

```

Using CLI 1.18.0-libraries.16

---

_[View the full topic](https://community.particle.io/t/publish-a-library/26022)._
